3d geometric modeling and motion capture using both single and dual imaging

ABSTRACT

A method and apparatus for obtaining an image to determine a three dimensional shape of a stationary or moving object using a bi dimensional coded light pattern having a plurality of distinct identifiable feature types. The coded light pattern is projected on the object such that each of the identifiable feature types appears at most once on predefined sections of distinguishable epipolar lines. An image of the object is captured and the reflected feature types are extracted along with their location on known epipolar lines in the captured image. Displacements of the reflected feature types along their epipolar lines from reference coordinates thereupon determine corresponding three dimensional coordinates in space and thus a 3D mapping or model of the shape of the object at any point in time.

This is a Divisional of U.S. patent application Ser. No. 11/837,553 filed Aug. 13, 2007. The entire disclosure of the prior application is hereby incorporated by reference herein in its entirety.

RELATIONSHIP TO EXISTING APPLICATIONS

The present application claims priority from U.S. provisional patent 60/860,209 filed on Nov. 21, 2006, the contents of which are hereby incorporated by reference.

The present application also claims priority from U.S. provisional patent 60/907,495 filed on Apr. 4, 2007, the contents of which are hereby incorporated by reference.

The present application also claims priority from U.S. provisional patent 60/924,206 filed on May 3, 2007, the contents of which are hereby incorporated by reference.

The present application also claims priority from U.S. provisional patent 60/929,835 filed on Jul. 13, 2007, the contents of which are hereby incorporated by reference.

FIELD AND BACKGROUND OF THE INVENTION

The present invention relates to a system and a method for three dimensional imaging and depth measurement of objects using active triangulation methods, and, more particularly, but not exclusively to three dimensional imaging of both objects at rest and in motion.

Three dimensional sensor systems are increasingly being used in a wide array of applications. These sensor systems determine the shape and or features of an object positioned in a scene of the sensor system's view. In recent years, many methods have been proposed for implementing 3D modeling systems that are capable of acquiring fast and accurate high resolution 3D images of objects for various applications.

The precise configuration of such 3D imaging systems may be varied. Most state of the art systems are not image based and have a synthetic non life-like look to them, much the same as computer graphics based video games. Furthermore, many current triangulation-based systems use an array of at least two or more passive high resolution cameras to determine the depth values by what is known as passive stereo correspondence. Such a method, while indeed acquiring texture and being of possibly high resolution, is both labor intensive and error prone. Passive stereo correspondence systems require manual assistance in defining correspondence between frames from each camera to calculate depth values. Automatic correspondence algorithms often contain an abundance of errors in matching between shots from different cameras, thus requiring human intervention for correspondence.

Other methods utilize LIDAR (Light Imaging Detection and Ranging) systems to determine range and/or other information of a distant target. By way of laser pulses, the distance to an object is determined by measuring the time delay between transmission of the laser pulse and detection of the reflected signal. Such methods, referred to as time-of-flight, are generally immune to occlusions typical of triangulation methods, but the accuracy and resolution are inherently inferior to that obtained in triangulation methods.

Triangulation based 3D sensor systems and methods typically have one or more projectors as a light source for projecting onto a surface and one or more cameras at a defined, typically rectified relative position from the projector for imaging the lighted surface. The camera and the projector therefore have different optical paths, and the distance between them is referred to as the baseline. Through knowledge of the baseline distance as well as projection and imaging angles, known geometric/triangulation equations are utilized to determine distance to the imaged object. The main differences among the various triangulation methods known in the art lie in the method of projection as well as the type of light projected, typically structured light, and in the process of image decoding to obtain three dimensional data.

Methods of light projection vary from temporal methods and phase shift methods, to spatial coded structured light and stereoscopic methods. Examples in the art of various forms of projected light include “laser fans” and line coded light.

Once a 2D image of the object is captured upon which a light source is projected as described above, image processing software generally analyzes the image to extract the three dimensional geometry of the object and possibly the three dimensional movement of the object through space. This is generally done by comparison of features in the captured image with previously captured images and/or with known characteristics and features of the projected light. The implementation of this step varies widely among currently known methods, typically a function of the method used to project light onto the object. Whatever the method used, the outcome of the process is generally a type of disparity/displacement map of identified features in the captured image. The final step of 3D spatial location and/or 3D motion capture involves the translation of the above mentioned disparity map into depth data, according to well known geometric equations, particularly triangulation equations.

The very fact that hundreds of methods and systems exist today hints at the underlying problem of a lack of a sufficiently effective and reliable method for 3D imaging. Furthermore, most of the systems that utilize active triangulation methods today are restricted to non dynamic imaging of objects. That is to say, even at high shutter speeds and using high resolution cameras, the imaged object must remain static. For example, a building may be imaged, but not a person riding a bike or cars moving on the street. This limitation on three dimensional imaging is a direct result of the need in most triangulation based 3D imaging systems to obtain a series of images while changing the characteristics of the light source over time. For example, many methods utilize a number of light patterns projected over a time interval, known as temporal coding.

Nonetheless, many methods have been introduced over the years for the three dimensional imaging of moving objects, most of which are based on the projection of a single pattern of light on the imaged object, thus enabling reconstruction of the so depth measurements from one or more simultaneous images rather than multiple images over a time interval. These single pattern methods can be broken down into two main classes. The first is assisted stereo methods wherein a comparison is made between two or more images from two or more imaging systems to compute depth data.

The second is structured light methods, and in particular coded structured light methods. These methods often use only one imaging system or camera. Coded structured light methods can further be broken down into several encoding types. One such method using coded structured light is spatial coding, which suffers from a wide range of problems of precision and reliability, particularly regarding feature identification, and other serious performance limitations. As a result, spatial single pattern systems have been implemented commercially only in a very limited manner. A further structured coding technique in the art is spectral coding, which requires a highly non textured surface or uniform textured surface and requires expensive imaging systems. As a result, these spectral based systems do not adequately provide the performance necessary for high texture applications.

Therefore, there is an unmet need for, and it would be highly useful to have, a system and a method that overcomes the above drawbacks.

SUMMARY OF THE INVENTION

A method of obtaining distance data from a scene including one or more objects, the method comprising:

projecting a multi-feature-type bi-dimensional light pattern onto the scene such that each feature of said light pattern is reflected from a different respective reflection location in the scene;

capturing a 2D image of the scene including said reflected features of a multi-feature-type set; and

for each reflected feature of said multi-feature-type set of said 2D image, determining, for said each reflected feature:

-   -   a respective feature type and     -   a respective epipolar line location; and

for said each reflected feature of said multi-feature-type set, deriving, in accordance with said respective determined feature type and with said respective determined epipolar line location, a respective distance of a respective associated reflection point.

A method wherein said respective epipolar line location is a displacement from a reference location.

A method wherein said determining of said respective epipolar line location includes effecting a correlation between said respective feature type and said reference location.

A method wherein, for a first reflected feature of a first feature type and a second reflected feature of a second feature type different from said first feature type, an epipolar line ordering of said determined reference locations differs from an epipolar line ordering of said first and second reflected features in said captured 2D image.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   projecting said coded light pattern on said objects,     -   capturing a 2D image of said objects having said projected coded         light pattern projected thereupon, said captured 2D image         comprising reflected said feature types, and     -   extracting said reflected feature types and their location on         respective said epipolar lines in said captured image.

A method wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of said imaged objects based on triangulation.

A method wherein a compilation of said 3D spatial coordinates comprises a 3D point cloud.

A method wherein said 3D point cloud is further processed to form a 3D mesh.

A method wherein said 3D mesh is further processed to add texture data of said imaged objects.

A method wherein said locations of reflected feature types are determined through measurements of displacements of said features along said epipolar lines from corresponding calibrated reference coordinates.

A method according wherein said coded light pattern is a repeating periodic pattern.

A method wherein said coded light pattern is a non-periodic pattern.

A method wherein said projected coded light pattern is projected such that each of said identifiable feature types appears at most once on predefined sections of said distinguishable epipolar lines.

A method wherein said predefined sections of said epipolar lines comprise the entire length of epipolar lines in the captured image.

A method wherein said predefined sections of said epipolar lines are sections of length of epipolar lines in the captured image.

A method wherein said projecting of said coded light pattern is at a predetermined optimized angle to said epipolar lines.

A method wherein said predetermined optimized projection angle is in accordance with dimensions of said coded light pattern.

A method wherein said predetermined optimized projection angle is in accordance with a horizontal distance between distinguishable epipolar lines.

A method wherein coded light pattern comprises a spatially encoded pattern.

A method further comprising temporal encoding.

-   -   A method wherein said coded light pattern comprises a temporal         encoded pattern.     -   A method wherein said coded light pattern comprises a spectral         encoded pattern.     -   A method wherein a said captured image is captured at each of         successive time frames.     -   A method wherein for each of said captured images, said         reflected feature types along respective epipolar lines         determine corresponding 3D spatial coordinates of said imaged         objects based on triangulation.     -   A method wherein said three dimensional coordinates for each         frame comprise a video stream providing 3D motion capture.     -   A method wherein said three dimensional coordinates are computed         in real time to provide real time video stream of 3D motion         capture.     -   A method wherein said bi dimensional coded light pattern is         bi-tonal.     -   A method wherein said bi-dimensional coded light pattern is         generated by superimposing a plurality of coded matrices on a         rhombus pattern, said matrices comprising binary values derived         from Debruijn sequences.     -   A method further comprising binary Gaussian smoothing of said         rhombus pattern having superimposed coded maniocs.     -   A method wherein said feature types are spatial combinations of         light intensity.     -   A method wherein extraction of said feature types and their         locations in said captured image is carried out by identifying         said spatial combinations of light intensity in said image.     -   A method wherein said identifying of said combinations of light         intensity is carried out by locating critical points of light         intensity among adjacent sampled points.     -   An apparatus for obtaining data from a 2D image in order to         determine the three dimensional shape of objects appearing in         said 2D image, said 2D image being characterized by         distinguishable geometrically separated epipolar lines, said         apparatus comprising:     -   a bi dimensional coded light pattern having a plurality of         predefined identifiable feature types,     -   a projector for projecting said coded light pattern on said         objects,     -   an imaging device for capturing an image of said objects having         said projected coded light pattern projected thereupon, said         captured image comprising reflected said feature types and,     -   a decoder configured to extract said reflected feature types and         their location on respective said epipolar lines in said         captured image.     -   An apparatus wherein said locations along respective epipolar         lines of said reflected feature types determine corresponding 3D         spatial coordinates of said imaged objects based on         triangulation.     -   An apparatus further configured to move in three dimensions in         relation to said objects during said imaging of said objects.     -   An apparatus, configured to capture said images of said objects         moving in three dimensions in relation to said apparatus.     -   A method for obtaining data from 2D video images in order to         determine the three dimensional shape of moving objects         appearing in said 2D video images, each frame of said 2D video         images being characterized by distinguishable geometrically         separated epipolar lines, said method comprising:     -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   projecting said coded light pattern on said moving objects,     -   capturing said 2D video images of said moving objects having         said projected coded light pattern projected thereupon, said         captured 2D video images comprising reflected said feature         types, and     -   for each captured frame of said video image, extracting         reflected said feature types and their location on respective         said epipolar     -   A method wherein, for each captured frame, said locations of         said reflected feature types along respective epipolar lines         determine corresponding 3D spatial coordinates of said imaged         objects based on triangulation.     -   A method wherein for each projection, each of said identifiable         feature types appears at most once on predefined sections of         said distinguishable epipolar lines.     -   An apparatus for obtaining data from 2D video images in order to         determine the three dimensional shape of moving objects         appearing in said 2D video images, each frame of said 2D video         images being characterized by distinguishable geometrically         separated epipolar lines, said apparatus comprising:     -   a bi dimensional coded light pattern having a plurality of         distinct identifiable feature types,     -   a projector for projecting said coded light pattern on said         moving objects,     -   an imaging device for capturing said 2D video images of said         moving object having said projected coded light pattern         projected thereupon, said captured 2D video images comprising         reflected said feature types, and     -   a decoder configured to extract reflected said feature types and         their location on respective said epipolar lines for each         captured frame of said video image.     -   An apparatus wherein, for each captured frame, said locations of         said reflected feature types along respective epipolar lines         determine corresponding 3D spatial coordinates of said imaged         objects based on triangulation.     -   In a system comprising a pattern-projecting apparatus operative         to project a multi-feature-type bi-dimensional light pattern         onto a scene such that each feature of the multi-feature-type         bi-dimensional light pattern reflects from a respective         reflection point and an image capture apparatus operative to         capture a 2D image of a scene including the reflected features,         a method of obtaining scene data from a target scene, the method         comprising:

for each feature of a feature set comprising a first feature-type-inhomogeneous plurality of epipolar-co-linear features of the bi-dimensional light pattern associated with a first epipolar line and a second feature-type-inhornogenous plurality of epipolar-co-linear features of the bi-dimensional light pattern associated with a second epipolar line different from said first epipolar line, providing a respective description of a respective reflection-point-distance:image-point-location relation, thereby providing a plurality of said reflection-point-distance:image-point-location relations,

for a captured 2D image of the target scene, for each feature of said feature set, determining from said captured 2D image of the target scene, a respective feature type and respective epipolar line identity for said each feature;

for said each feature of said feature set, correlating said each feature, in accordance with said determined feature type and said epipolar line identity, with a respective said reflection-point-distance:image-point-location relation selected from said plurality of reflection-point-distance:image-point-location relations; and

for said each feature of said feature set, using said respective selected reflection-point-distance:image-point-location relation to determining, from a location in said captured 2D image of the target scene, a location of a respective reflection point, in the target scene.

A system for obtaining scene data from a target scene, the system comprising:

a) a pattern-projecting apparatus operative to project a multi-feature-type bi-dimensional light pattern onto a scene such that each feature of the multi-feature-type bi-dimensional light pattern reflects from a respective reflection point;

b) an image capture apparatus operative to capture a 2D image of a scene including the reflected features; and

c) an image processing element operative, for each reflected feature of said multi-feature-type set of said 2D image, to:

i) determine, for said each reflected feature:

a respective feature type; and

a respective epipolar line location; and

ii) derive, for said each reflected feature of said multi-feature-type set, in accordance with said respective determined feature type and with said respective determined epipolar line location, a respective distance of a respective associated reflection point.

A system for obtaining scene data from a target scene, the system comprising:

a) a pattern-projecting apparatus operative to project a multi-feature-type bi-dimensional light pattern onto a scene such that each feature of the multi-feature-type bi-dimensional Light pattern reflects from a respective reflection point;

b) an image capture apparatus operative to capture a 2D image of a scene including the reflected features, said pattern-projecting apparatus and image capture apparatus configured such that each feature of a given multi-feature-type set of features remains epipolar co-linear in said captured 2D image with the entire multi-feature-type set of features in a manner that is insensitive to scene distance in a manner that does not preserve epipolar line feature order; and

c) an image processing element operative:

i) for each reflected feature of said multi-feature-type epipolar co-linear set of said reflected features of said 2D image, to determine, for said each reflected feature a respective feature type;

ii) to distinguish between said features of set multi-feature-type epipolar co-linear set in a manner insensitive to an epipolar line ordering of said features multi-feature-type epipolar co-linear of reflected features.

A system for obtaining scene data from a target scene, the system comprising:

a) a pattern-projecting apparatus operative to project a multi-feature-type bi-dimensional light pattern onto a scene such that each feature of the multi-feature-type hi-dimensional light pattern reflects from a respective reflection point;

b) an image capture apparatus operative to capture a 2D image of a scene including the reflected features,

wherein said pattern-projecting apparatus and said image capture apparatus are operative, in a manner insensitive to a distance from the target scene, such that for each distinct epipolar line of a multi-line epipolar line set in said captured 2D image:

a feature-type inhomogeneous plurality of projected features of said multi-feature-type bi-dimensional light pattern reside on said each epipolar line;

at most one feature type of said multi-feature-type bi-dimensional light pattern resides on said epipolar line.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   providing the inverse of said bi dimensional coded light         pattern,     -   projecting said coded light pattern and said inverse coded light         pattern on said objects,     -   capturing:     -   1) a first image of said objects having said projected coded         light pattern projected thereupon, said first image comprising         reflected said feature types,     -   2) a second image of said objects having said inverse coded         light pattern projected thereupon, said second image comprising         reflected said feature types,     -   obtaining a resultant image from the subtraction of said second         captured image from said first captured image, and     -   extracting said reflected feature types and their location on         respective said epipolar lines in said resultant image.     -   A method wherein said locations of said reflected feature types         along respective epipolar lines determine corresponding 3D         spatial coordinates of said imaged objects based on         triangulation.

A method wherein said coded light patterns comprise spatially encoded patterns.

A method wherein said light patterns are projected temporally.

A method wherein said light patterns are projected with differing spectral values of light.

A method wherein said light patterns having differing spectral values are projected temporally.

A method wherein said first image and said second image are captured temporally.

A method wherein said temporal imaging is carried out over non-uniform time intervals.

A method wherein said first image and said second image are captured simultaneously using spectral differentiation.

A method further comprising the capture of a third image of said imaged object, said third image comprising texture information.

A method wherein said extraction of said feature types in said resultant image is carried out by determining direct intensity values of sample points.

A method for obtaining texture data from two 2D images, each of said images containing a reflected code used to obtain depth data of imaged objects independently for each image, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   providing the inverse of said bi dimensional coded light         pattern,     -   projecting said coded light pattern and said inverse coded light         pattern on said objects,     -   capturing:     -   1) a first image of said objects having said projected coded         light pattern projected thereupon, said first image comprising         reflected said feature types,     -   2) a second image of said objects having said inverse coded         light pattern projected thereupon, said second image comprising         reflected said feature types,     -   obtaining a resultant image from the addition of said second         captured image with said first captured image, said resultant         image providing texture information of said imaged objects.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

-   -   providing a first bi dimensional coded light pattern having a         plurality of distinct identifiable feature types, each feature         type being comprised of points of varying light intensity         wherein one point of said feature type is either a maximum or         minimum,     -   providing a second bi dimensional light pattern comprising said         first pattern with said maxima or minima inverted,     -   projecting said first coded light pattern and said second coded         light pattern on said objects,     -   capturing:     -   1) a first image of said objects having said first projected         coded light pattern projected thereupon, said first image         comprising reflected said feature types,     -   2) a second image of said objects having said second coded light         pattern projected thereupon, said second image comprising         reflected said feature types,     -   obtaining a resultant image from the subtraction of said second         captured image from said first captured image, said resultant         image comprising said maxima and minima points of said reflected         feature types, and     -   extracting said maxima and minima points and their location on         respective said epipolar lines in said resultant image.

A method wherein said locations of maxima and minima are used to determine corresponding feature type locations in said first image.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

providing a first bi dimensional coded light pattern having a plurality of distinct identifiable feature types, each feature type being comprised of points of varying light intensity wherein one point of said feature type is either a maximum or minimum,

-   -   providing a second bi dimensional light pattern comprising said         first pattern with said maxima or minima inverted,     -   projecting said first coded light pattern and said second coded         light pattern on said objects,     -   capturing:     -   1) a first image of said objects having said first projected         coded light pattern projected thereupon, said first image         comprising reflected said feature types,     -   2) a second image of said objects having said second coded light         pattern projected thereupon, said second image comprising         reflected said feature types,     -   obtaining a resultant image from the addition of said second         captured image with said first captured image, said resultant         image comprising non-maxima and non-minima intensity points of         said reflected feature types,     -   extracting said non-maxima and non-minima points of said         reflected feature types and their location on associated said         epipolar lines in said resultant image.

A method wherein said locations of said maxima and minima and said locations of said non-maxima and non-minima points along respective epipolar lines determine corresponding 3D spatial coordinates of said imaged objects based on triangulation.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   providing the inverse of said bi dimensional coded light         pattern,     -   projecting said coded light pattern and said inverse coded light         pattern on said objects,     -   capturing:     -   1) a first image of said objects having said projected coded         light pattern projected thereupon, said first image comprising         reflected said feature types,     -   2) a second image of said objects having said inverse coded         light pattern projected thereupon, said second image comprising         reflected said feature types,     -   obtaining a resultant image from the absolute value of the         subtraction of said second captured image horn said first         captured image, said resultant image comprising outlines of said         reflected feature types,     -   extracting said outlines and their location on respective said         epipolar lines in said resultant image.

A method wherein said locations of said outlines along respective epipolar lines determine corresponding 3D spatial coordinates of said imaged objects based on triangulation.

A method for obtaining data from a 2D image in order to determine the three dimensional shape of objects appearing in said 2D image, said 2D image being characterized by distinguishable geometrically separated epipolar lines, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   projecting said coded light pattern on said objects,     -   capturing:     -   1) a first image of said objects having said projected coded         light pattern projected thereupon, said first image comprising         reflected said feature types,     -   2) a second image of said objects having ambient light projected         thereupon,     -   obtaining a resultant image from the subtraction of said second         captured image from said first captured image,     -   extracting said reflected feature types and their location on         respective said epipolar lines in said resultant image.

A method wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of said imaged objects based on triangulation.

A method for determining the three dimensional shape of imaged objects appearing in two obtained 2D images, said obtained images related to each other by defined epipolar fields, said method comprising:

-   -   providing a bi dimensional coded light pattern,     -   projecting said coded light pattern on said imaged objects,     -   capturing a first 2D image of said imaged objects,     -   capturing a second 2D image of said imaged objects,     -   selecting a pixel area PX1 of said first 2D image, the content         appearing on PX1 being constrained to appear on a specific         epipolar field EPm in said second 2D image,     -   finding said content of PX1 in said second image along said         epipolar field EPm, and     -   determining relative locations of appearances of said content of         PX1 between said first and second images.

A method wherein said relative locations of said appearances of PX1 content determine corresponding 3D spatial coordinates of imaged objects based on triangulation.

A method wherein said imaged objects are objects in an urban scene, and said 3D spatial coordinates are used to model said scene in three dimensions.

An apparatus for determining the three dimensional shape of imaged objects appearing in two obtained 2D images, said 2D images being obtained from at least two substantially adjacent imaging devices, said images being related to each other by defined epipolar fields, said apparatus comprising:

-   -   a bi dimensional coded light pattern     -   a projector for projecting said coded light pattern on said         imaged objects,     -   a first imaging device for capturing a first 2D image of said         imaged objects,     -   a second imaging device for capturing a second 2D image of said         imaged objects,     -   an image processing device for         -   a) selecting a pixel area PX1 of said first 2D image, the             content appearing on PX1 being constrained to appear on a             specific epipolar field EPm in said second 2D image,         -   b) finding said content of PX1 in said second image along             said epipolar field EPm, and         -   c) determining relative locations of appearances of said             content of PX1 between said first and second images.

An apparatus wherein said relative locations of said appearances of PX1 content determine corresponding 3D spatial coordinates of imaged objects based on triangulation.

An apparatus wherein said imaged objects are objects in an urban scene, and said 3D spatial coordinates are used to model said scene in three dimensions.

A triangulation-based method for 3D modeling of an urban scene, said method capturing at least two images of said urban scene having a projected structured light pattern projected thereupon, said images being related to each other by defined epipolar fields, each image further having an additional epipolar field in relation to a projector, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   projecting said coded light pattern on said urban scene,     -   capturing a first 2D image of said urban scene comprising         reflected said feature types,     -   capturing a second 2D image of said urban scene comprising         reflected said feature types,     -   selecting a pixel area PX1 of said first 2D image, the content         appearing on PX1 being constrained to appear on a specific         epipolar field EPm in said second 2D image,     -   finding said content of PX1 in said second image along said         epipolar field EPm, and     -   determining relative locations of appearances of said content of         PX1 between said first and second images, and     -   for each of said captured images independently, further         extracting said reflected feature types and their location on         respective epipolar lines.

A method wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of imaged objects in said urban scene based on triangulation.

A method wherein said relative locations of appearances of said content of PX1 determine corresponding 3D spatial coordinates of imaged objects in said urban scene based on triangulation.

A method wherein said 3D spatial coordinates are used to model said urban scene in three dimensions.

A method wherein said 3D model of urban scene is presented to a user on a display that allows said user to navigate through the urban scene.

A method wherein texture information is added to complement said urban model.

A method wherein aerial data is added to complement said urban model.

An apparatus for triangulation-based 3D modeling of an urban scene, said apparatus comprising at least two substantially adjacent imaging devices for capturing at least two images of said urban scene, said apparatus further having a projector for projecting structured light pattern on objects in said scene, said images being related to each other by defined epipolar fields, each image further having an additional epipolar field in relation to said projector, said apparatus comprising:

-   -   a bi dimensional coded light pattern having a plurality of         distinct identifiable feature types,     -   a projector for projecting said coded light pattern on said         urban scene,     -   a first imaging device for capturing a first 2D image of said         urban scene comprising reflected said feature types,     -   a second imaging device for capturing a second 2D image of said         urban scene comprising reflected said feature types,     -   an image processing device for         -   a) selecting a pixel area PX1 of said first 2D image, the             content appearing on PX1 being constrained to appear on a             specific epipolar field EPm in said second 2D image,         -   b) finding said content of PX1 in said second image along             said epipolar field EPm,         -   c) determining relative locations of appearances of said             content of PX1 between said first and second images, and         -   d) extracting, in each image independently, said reflected             feature types and their locations on respective said             epipolar lines.

An apparatus wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of imaged objects in said urban scene based on triangulation.

An apparatus wherein said relative locations of appearances of said content of PX1 determine corresponding 3D spatial coordinates of imaged objects in said urban scene based on triangulation.

An apparatus wherein said 3D spatial coordinates are used to model said urban scene in three dimensions.

An apparatus wherein said 3D model of urban scene is presented to a user on a display that allows said user to navigate through the urban scene.

An apparatus wherein texture information is added to complement said urban model.

An apparatus wherein aerial data is added to complement said urban model.

An apparatus further configured to move in three dimensions in relation to objects in urban scene during said imaging of said urban scene.

An apparatus configured to capture said images of objects in said urban scene moving in three dimensions in relation to said apparatus.

A method for determining the three dimensional shape of imaged anatomical surface elements appearing in two obtained 2D images, said obtained images related to each other by defined epipolar fields, said method comprising:

-   -   providing a bi dimensional coded light pattern,     -   projecting said coded light pattern on said anatomical surface         element,     -   capturing a first 2D image of said anatomical surface element,     -   capturing a second 2D image of said anatomical surface element,     -   selecting a pixel area PX1 of said first 2D image, the content         appearing on PX1 being constrained to appear on a specific         epipolar field EPm in said second 2D image,     -   finding said content of PX1 in said second image along said         epipolar field EPm, and     -   determining relative locations of appearances of said content of         PX1 between said first and second images.

A method wherein said relative locations of said appearances of PX1 content determine corresponding 3D spatial coordinates of imaged anatomical surface element based on triangulation.

An apparatus for determining the three dimensional shape of imaged anatomical surface elements appearing in two obtained 2D images, said 2D images being obtained from at least two substantially adjacent imaging devices, said images being related to each other by defined epipolar fields, said apparatus comprising:

-   -   a bi dimensional coded light pattern     -   a projector for projecting said coded light pattern on said         anatomical surface elements,     -   a first imaging device for capturing a first 2D image of said         imaged anatomical surface elements,     -   a second imaging device for capturing a second 2D image of said         imaged anatomical surface elements,     -   an image processing device for         -   a) selecting a pixel area PX1 of said first 2D image, the             content appearing on PX1 being constrained to appear on a             specific epipolar field EPm in said second 2D image,         -   b) finding said content of PX1 in said second image along             said epipolar field EPm, and         -   c) determining relative locations of appearances of said             content of PX1 between said first and second images.

An apparatus wherein said relative locations of said appearances of PX1 content determine corresponding 3D spatial coordinates of imaged anatomical surface elements based on triangulation.

A triangulation-based method for 3D modeling of anatomical surface elements, said method capturing at least two images of said anatomical surface elements having a projected structured light pattern projected thereupon, said images being related to each other by defined epipolar fields, each image further having an additional epipolar field in relation to a projector, said method comprising:

-   -   providing a bi dimensional coded light pattern having a         plurality of distinct identifiable feature types,     -   projecting said coded light pattern on said anatomical surface         elements,     -   capturing a first 2D image of said urban scene comprising         reflected said feature types,     -   capturing a second 2D image of said urban scene comprising         reflected said feature types,     -   selecting a pixel area PX1 of said first 2D image, the content         appearing on PX1 being constrained to appear on a specific         epipolar field EPm in said second 2D image,     -   finding said content of PX1 in said second image along said         epipolar field EPm, and     -   determining relative locations of appearances of said content of         PX1 between said first and second images, and     -   for each of said captured images independently, further         extracting said reflected feature types and their location on         respective epipolar lines.

A method wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of imaged anatomical surface elements based on triangulation.

A method wherein said relative locations of appearances of said content of PX1 determine corresponding 3D spatial coordinates of imaged anatomical surface elements based on triangulation.

A method wherein said 3D spatial coordinates are used to model said anatomical surface elements in three dimensions.

A method wherein said 3D model of anatomical surface element is presented to a user on a display that allows said user to navigate around the anatomical surface element.

A method wherein texture information is added to complement said anatomical surface element model.

An apparatus for triangulation-based 3D modeling of an anatomical surface element, said apparatus comprising at least two substantially adjacent imaging devices for capturing at least two images of said anatomical element, said apparatus further having a projector for projecting structured light pattern on anatomical element, said images being related to each other by defined epipolar fields, each image further having an additional epipolar field in relation to said projector, said apparatus comprising:

-   -   a bi dimensional coded light pattern having a plurality of         distinct identifiable feature types,     -   a projector for projecting said coded light pattern on said         anatomical element,     -   a first imaging device for capturing a first 2D image of said         anatomical element comprising reflected said feature types,     -   a second imaging device for capturing a second 2D image of said         anatomical element comprising reflected said feature types,     -   an image processing device for         -   a) selecting a pixel area PX1 of said first 2D image, the             content appearing on PX1 being constrained to appear on a             specific epipolar field EPm in said second 2D image,         -   b) finding said content of PX1 in said second image along             said epipolar field EPm,         -   c) determining relative locations of appearances of said             content of PX1 between said first and second images, and         -   d) extracting, in each image independently, said reflected             feature types and their locations on respective said             epipolar lines.

An apparatus wherein said locations of said reflected feature types along respective epipolar lines determine corresponding 3D spatial coordinates of imaged anatomical surface elements based on triangulation.

An apparatus wherein said relative locations of appearances of said content of PX1 determine corresponding 3D spatial coordinates of imaged anatomical surface elements based on triangulation.

An apparatus wherein said 3D spatial coordinates are used to model said anatomical surface elements in three dimensions.

An apparatus wherein said 3D model of anatomical surface element is presented to a user on a display that allows said user to navigate around the anatomical surface element.

An apparatus wherein texture information is added to complement said anatomical surface element model.

An apparatus further configured to move in three dimensions in relation to said anatomical surface element during said imaging of said anatomical element.

An apparatus configured to capture said images of said anatomical surface elements moving in three dimensions in relation to said apparatus.

Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The materials, methods, and examples provided herein are illustrative only and not intended to be limiting.

Implementation of the method and system of the present invention involves performing or completing certain selected tasks or steps manually, automatically, or a combination thereof. Moreover, according to actual instrumentation and equipment of preferred embodiments of the method and system of the present invention, several selected steps could be implemented by hardware or by software on any operating system of any firmware or a combination thereof. For example, as hardware, selected steps of the invention could be implemented as a chip or a circuit. As software, selected steps of the invention could be implemented as a plurality of software instructions being executed by a computer using any suitable operating system. In any case, selected stages of the method and system of the invention could be described as being performed by a data processor, such as a computing platform for executing a plurality of instructions.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention is herein described, by way of example only, with reference to the accompanying drawings. With specific reference now to the drawings in detail, it is stressed that the particulars shown are by way of example and for purposes of illustrative discussion of the preferred embodiments of the present invention only, and are presented in order to provide what is believed to be the most useful and readily understood description of the principles and conceptual aspects of the invention. In this regard, no attempt is made to show structural details of the invention in more detail than is necessary for a fundamental understanding of the invention, the description taken with the drawings making apparent to those skilled in the art how the several forms of the invention may be embodied in practice.

In the drawings:

FIG. 1A-1G are simplified diagrams illustrating one embodiment of the present invention showing how bidimensional light pattern imaging is used together with the principles of epipolar geometry.

FIG. 2 is a simplified flow chart showing the steps in the process of three dimensional image and/or motion-image capture of the present embodiments.

FIG. 3 illustrates an exemplary spatially-periodic 2D pattern. P1 projected to obtain epipolar separation and corresponding image I_(P1) of the reflected pattern.

FIG. 4 is a simplified flow chart and diagram illustrating how the corresponding 3D spatial locations of identified features in the captured 2D image are derived.

FIG. 5 shows further exemplary point clouds derived through the methods of embodiments of the present invention.

FIG. 6A is a simplified schematic representation of the reflected pattern P1 in image I_(P1) after being projected in accordance with the epipolar separation principle.

FIG. 6B again shows a simplified schematic representation of reflected pattern P1 in image I_(P1), but now includes multiple appearances of the same feature on a given epipolar line in the image.

FIG. 7 is a simplified illustration of a captured image of a preferred light pattern projected in accordance with a particular embodiment of the present invention.

FIG. 8 is a simplified schematic representation of reflected pattern P1 in image I_(P1) with the light pattern now projected at a smaller rotation angle with respect to the direction of epipolar field.

FIG. 9A is a simplified schematic diagram of a non ordered and non periodic pattern that may be used in certain embodiments.

FIG. 9B is a table of possible coding methods according to which it is possible to implement various patterns to be projected based on FIG. 9A.

FIG. 10 are illustrations of exemplary feature types that comprise preferred encoded pattern P1.

FIG. 11 is an illustration of the exemplary pattern P1 as seen an image I′_(P1) after being reflected from an imaged cube.

FIGS. 12A and 12B illustrate the construction process and the encoding scheme inherent in pattern P1.

FIG. 12C contains simplified illustrations of the sample points in pattern P1 after being reflected from an imaged object and viewed as part of a captured image in an imaging apparatus.

FIG. 13 illustrates a preferred projection and imaging method using pattern P1 that enable epipolar separation techniques.

FIG. 14 shows exemplary characters or feature types along with image I_(P1) of exemplary pattern P1.

FIG. 15 is an illustration of a preferred dual projection and dual imaging embodiment of the present invention involving P1 and −P1.

FIG. 16 is an illustration of the addition of the two images, P₁ and −P¹⁻

FIG. 17 is a preferred embodiment of a dual projection and dual imaging method of the present invention.

FIG. 18 shows the addition of the two imaged patterns of FIG. 18.

FIG. 19 shows an illustration of the resultant image obtained from the absolute value of the subtraction of image −P₁ from image P₁.

FIG. 20 is an illustration of the resultant image obtained from the absolute value of the subtraction of image −C from image P₁.

FIG. 21 is an illustration of a particular embodiment of dual pattern projection and dual pattern imaging.

FIG. 22 is a simplified illustration showing how an epipolar field between two images is related.

FIG. 23 is a simplified illustration showing how separate epipolar fields exist for respective imaging apparatuses and a projector in a particular embodiment.

FIG. 24 is a simplified flow chart of a particular embodiment of the present invention showing the steps in the process of generating a 3D map of an urban region.

FIG. 25 is simplified flow chart of a particular embodiment of the present invention showing the steps in the process of 3D imaging of an anatomical part.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present embodiments provide an apparatus and a method for three dimensional imaging of static and moving objects. In particular, it is possible to determine three-dimensional spatial shape data of a given object(s) by (a) projecting an encoded bi-dimensional light pattern on the object(s); and (b) analyzing a 2D image of the reflected bi-dimensional light pattern utilizing the optical constraints and principles associated with epipolar geometry and triangulation.

The principles and operation of an apparatus and method according to the present invention may be better understood with reference to the drawings and accompanying description.

Before explaining at least one embodiment of the invention in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of the components set forth in the following description or illustrated in the drawings. The invention is capable of other embodiments or of being practiced or carried out in various ways. Also it is to be understood that the phraseology and terminology employed herein is for the purpose of description and should not be regarded as limiting.

FIGS. 1A-1G: Determining a 3D Depth Map of an Object or Objects

Reference is now made to FIG. 1A-1D, which are simplified diagrams illustrating one embodiment of the present invention. In the particular example of FIGS. 1A-1D, system 10 comprises projector 12 and imaging apparatus 14 found at respective locations (x₁ ^(P), y₁ ^(P), z₁ ^(P)) and (x₁ ^(i), y₁ ^(i), z₁ ^(i)). An encoded bi-dimensional light pattern 16, comprising a predefined array of a finite set of identifiable feature types, is projected by the projector 12 onto surfaces in a scene containing imaged objects 18 a, 18 b, and 18 c. Exemplary features in the projected pattern are denoted as 20 a, 20 b, 20 d, and 20 f. In this particular example, the projected pattern takes the form of an array of monochromatic light beams of varying intensity, wherein combinations of adjacent light beams comprise spatially encoded features or letters. These features intersect the imaged objects surface's at various reflection points 19 a, 19 b, 19 d, and 19 f and are then observed in 2D image 22 captured on sensor 24 of imaging apparatus 14. The projected features 20 a, 20 b, 20 d, and 20 f thus appear as reflected features 28 a, 28 b, 28 d, and 28 f in the captured image 22. Imaging apparatus 14 may be for example a CCD or CMOS digital video camera, or any other type of array of photo-detector elements.

The relative position 30 between projector 12 and sensor 24 is fixed, thus imparting a geometric constraint to system 10. This constraint restricts the location of any given reflected feature 28 a, 28 b, 28 d, and 28 f in the captured image 22 to a unique set of points in the image called an epipolar line. Epipolar lines β, φ, and ρ are shown in the figure. That is to say, for a system 10 with a given light pattern and fixed relative position between projector and sensor, for any object or group of objects upon which the pattern is projected, each feature of the projected pattern is always observed on a particular, singular epipolar line in the captured image 22. Moreover, as will be explained below, the above holds true whether the imaged objects are fixed or in relative motion to the projector/imaging apparatus. The relationship between each feature in the pattern and a constant epipolar line is thus irrespective of the reflection point in 3D space from which the feature is reflected.

The reflection points of the exemplary projected features are denoted as 19 a, 19 b, 19 d, and 19 f and have associated respective reflection distances D_(A), D_(B), D_(D), and D_(F). The reflection distance is the distance from the sensor 24 of the imaging apparatus to the reflection point location in 3D space on the imaged object 18 a, 18 b, 18 c upon which a given feature is reflected. Reflection distance is sometimes referred to as depth.

Thus, as illustrated in FIGS. 1A-1D, each reflected feature 28 a, 28 b, 28 d, and 28 f found in image 22 is constrained to a respective specific epipolar line, independent of the point in space from which the feature was reflected. Feature 28 a is thus constrained to epipolar line φ independent of the 3D location of 19 a, or alternatively independent of reflection distance D_(A). Features 28 b and 28 d are two reflected features from the pattern that share the same epipolar β. Features 28 b and 28 d are always found on this epipolar line irrespective of reflection distances D_(B) and D_(D). Similarly, feature 28 f is always reflected onto epipolar line ρ independent of the reflection distance D_(F).

However, the reflection distance, or alternatively the point in 3D space from which the feature is reflected, does indeed determine where along that epipolar line the feature appears. Thus, the reflection distance does not affect the particular epipolar line upon which a given reflected feature appears, but rather only the precise location along that line.

To illustrate the change in position of a feature along the epipolar line as a function of reflection distance, we now turn to FIGS. 1E-1G. In each of FIGS. 1E, 1F, and 1G, the projector and imaging apparatus, although always at a fixed relative distance to one another, move in relation to the object 18 a. In FIG. 1E, projector 12 and imaging apparatus 14 are at locations (x₁ ^(p), y₁ ^(p), z₁ ^(p)) and (x₁ ^(i), y₁ ^(i), z₁ ^(i)) respectively. The reflection distance of reflected feature 28 a (projected feature 20 a) on epipolar line φ is seen as D_(A), after being reflected from reflection point 19 a on object 18 a. In FIG. 1F, the projector and imaging apparatus move to respective points in space (x₂ ^(p), y₂ ^(p), z₂ ^(p)) and (x₂ ^(i), y₂ ^(i), z₂ ^(i)). The reflection distance of reflected feature 28 a is now D_(A)′ after being reflected from a different reflection point 19 a′ on object 18 a. As a result, feature 28 a is now reflected onto a lower part of epipolar line φ. In FIG. 10, the projector and imaging apparatus move to a third set of respective coordinates in space (x₃ ^(p), y₃ ^(p), z₃ ^(p)) and (x₃ ^(i), y₃ ^(i), z₃ ^(i)). The reflection distance of reflected feature 28 a is now D_(A)″ after being reflected from a still third reflection point 19 a″ on object 18 a. As a result, feature 28 a is now reflected onto a higher part of epipolar line φ. However, no matter what the reflection distance, reflected feature 28 a (projected feature 20 a) must always appear on epipolar line φ and only on φ.

It is understood that any relative motion between the system 10 and an imaged object causes the reflection distance of a particular feature to change. This relative motion may result from motion of the imaged object, from motion of the projector/imaging system, or from motion of both the imaged object and projector/imaging system. Any change in the reflection distance causes a change in the precise location of a given reflected feature along its associated epipolar line. However, the particular epipolar line upon which that feature appears remains constant.

Therefore, we can conclude that the principles of epipolar geometry dictate a mapping between a set of 2D coordinates in the image and three dimensional coordinates in space that are viewed by the imaging apparatus. Again, the precise point at which a given captured feature appears along a particular epipolar line is a function of the feature's reflection distance, or alternatively stated, the point in 3D space from which the feature is reflected.

For each image, or frame, each reflected feature is identified according to feature type and its location is determined along its associated epipolar line in the image, preferably by an image processing device 36. The precise position of a feature along its epipolar line is then corresponded, based on triangulation, to a 3D spatial coordinate from which is was reflected. Alternatively, the position is compared to pre computed triangulation tables to determine the three dimensional spatial location of the point on the object from which the feature is reflected. In some embodiments, these triangulation based calculations are carried out by the image processing device 36.

This process may be repeated for a plurality of features of the 2D image, where each feature is reflected off of a different respective location on the surface of the 3D imaged object(s). For any given image frame, each such identified feature in the captured 2D image leads to a three dimensional spatial location, the compilation of all such spatial locations comprising a point cloud of locations in 3D space. This 3D point cloud gives a three dimensional or depth map of the imaged object(s). Further processing of the point cloud may yield a 3D mesh which essentially fuses the points of the 3D cloud into 3D surfaces. This mesh may also be given graphics texture based on additional texture capture of the objects in the scene. For 3D mapping of objects in motion, the above process described for a single image is carried out over a series of images leading to 3D video.

FIG. 2: Simplified Flow Chart of 3D Image Capture

Reference is made to FIG. 2, which is a simplified flow chart showing the steps in the process of three dimensional image and/or motion-image capture of the present embodiments. Each step of the flow chart is discussed in further detail in the following figures. The flow chart, together with diagrams 1A-1G, gives the reader a simplified and overall intuitive understanding of the duce dimensional imaging process described herein.

Step 70 is the provision of a predefined coded light pattern. This coded light pattern, as exemplified in FIGS. 1A-1D and denoted there as 16, is an array of a finite set of feature types in the form of varying intensity light beams. Preferred embodiments of patterns and their characteristics are discussed in figures below. Step 72 is the projection of that pattern on an object(s). Several preferred projection methods are discussed in figures below as well. In step 74, a 2D image is captured that contains features reflected off of the object(s) upon which the pattern was projected. The image is analyzed or processed to identify features and their locations along respective epipolar lines, step 76. The locations of the features along their epipolar lines are then associated with 3D coordinates in space from which the features were reflected, step 78. This process of correspondence between feature locations along epipolar lines and 3D spatial coordinates, carried out through triangulation techniques, is discussed below. For each identified feature in the 2D image, a corresponding 3D coordinate is thus derived indicating the point in space at which that feature reflected off of an imaged object. Through a compilation of all such 3D coordinates, a 3D point cloud is derived that gives a three dimensional or depth map of the imaged object(s), step 80. Further processing of the point cloud may yield a 3D mesh which essentially fuses the points of the 3D cloud into 3D surfaces. This mesh may also be given graphics texture based on additional texture capture of the objects in the scene.

In the case where objects or the camera are in motion, steps 74-80 may be continuously repeated to obtain 3D motion capture. In such a case of 3D motion capture, a series of 2D captured images of the reflected light pattern off of the moving object(s) comprises frames in a video sequence. This 2D video sequence can be processed frame by frame in the manner discussed in the flow chart to derive the 3D spatial coordinates for each frame. The result is a series of point clouds, one for each frame of the video sequence, that together comprise a moving 3D depth map over time.

FIG. 3: Pattern Projection and Epipolar Separation

FIG. 3 provides an exemplary spatially-periodic 2D pattern P1 which may be projected onto the object. The 2D pattern includes a plurality of different feature types 20, which appear within the pattern at various locations. For clarity, in the present figure, each unique feature type is arbitrarily assigned an alphabetic character. As will be explained in further detail below in FIG. 10, each pattern feature is composed of a spatial combination of black and white points. Features are repeated in a cyclical fashion in the code. Specifically, identical feature types repeat themselves every other row in the vertical direction of the pattern and every sixteen columns in the horizontal direction of the pattern. The black and white points of the pattern features correspond to projections of either a high or low illumination intensity of monochromatic light on an imaged object. Each character in the code is thus a spatial combination of projected light intensities.

After reflection off of the 3D objects, subsection 48 of the projected periodic pattern P1 generates image I_(P1) containing the reflected pattern. Epipolar lines 52, 54, and 56 are shown. Thus image I_(P1) is a simplified illustration of the reflected pattern being viewed through an imaging apparatus upon being reflected off of an imaged object. For simplicity, only the reflected pattern is shown and not any reflected imaged objects appearing in I_(P1) as well. In this particular embodiment, the projector and imaging apparatus are positioned vertically from one another, thus causing the epipolar lines in the captured image to be in a substantially vertical direction. In another possible embodiment, the projector and imaging apparatus may be positioned horizontally from each other, in which case the epipolar lines in the captured image would be substantially horizontal.

As seen and mentioned above, any given feature type repeats itself cyclically many times in the vertical direction of the pattern, and were the pattern to be projected without rotation, many features of the same type would be observed in the captured image on the same vertical epipolar line. However, through slight rotation of the projected pattern, features of die same type are reflected onto separate epipolar lines in image I_(P1). For example, features 58 and 60, both of type (A), are now reflected onto two adjacent but distinguishably separate epipolar lines 52 and 54. As will be explained further below, the separation of all identical pattern, feature types onto separate epipolar lines in the captured image, called epipolar separation herein, enables identification of each feature without ambiguity. To understand why this is so, a brief discussion of calibrated feature reference coordinates and displacement of features from these reference coordinates now follows.

Depth Calibration (Calibrated Feature Reference Coordinates)

Given a particular pattern such as that described in the current embodiment, and assuming the geometric constraint of a fixed distance between the projector and imaging apparatus, a particular pattern feature appears on a constant pre-determined epipolar line. As previously discussed, this property is conserved and therefore the appearance on this epipolar line is irrespective of the distance and shape of the imaged object from which this feature is reflected. For a given imaged object, this feature appears reflected at a certain location along that pre-determined epipolar line, and this location may be used as an image reference coordinate for that feature. That is to say, the feature's reference coordinate is a location along the epipolar line that corresponds to a 3D spatial coordinate, this coordinate being the point in space from which the feature was reflected. The correspondence between feature reference coordinate locations along epipolar lines and 3D spatial coordinates, determined through triangulation methods, is often called depth calibration. This calibration process is carried out a single time for a given pattern and given configuration of the imaging device and projector. The result is typically a database that associates each reflected pattern feature to a unique image reference coordinate. Calibration processes vary in the art and will not be discussed further here. One example is found in the paper by D. Q. Huynh in Procedures IEEE Conf. Computer Vision, Pattern Recognition, 1997, pp. 225-230.

Displacement of Features from Calibrated Reference Coordinates

Now again, for a given projected pattern and imaging device, the information from correspondence between feature reference coordinate locations along epipolar lines and 3D spatial coordinates, can be used in all images obtained through that device. For each identified reflected feature in a given captured image, the displacement of that feature from its image reference coordinate along its epipolar line indicates the 3D coordinate in space from which the feature is reflected. That is to say, since a known correspondence exists between each reference coordinate and a precise 3D spatial location, the 2D epipolar line displacement of a reflected feature from that reference coordinate enables the derivation of the point in space from which the feature is reflected.

After the above discussion of calibrated feature reference coordinates and displacement of features from these image reference coordinates, we now return to the discussion of pattern projection and epipolar separation.

As stated, were the pattern to be projected without rotation, many features of the same type would be observed in the captured image on the same vertical epipolar line. Under such projection conditions, each identified identical feature, say (A), along a given epipolar line would be assigned a reference coordinate in a calibration process. From the discussion above of the conservation of features to their respective epipolar lines, any image of any 3D object utilizing that pattern projected without rotation would contain those same (A) feature types at points along the same epipolar line. Since identification of reflected features and thus correspondence to reference coordinates is based on feature type, there is no way of distinguishing between identical feature types and corresponding reference coordinates to determine displacement. In other words, there is no indication of which identified (A) feature type corresponds to which pre-determined (A) reference coordinate along that epipolar line.

However, by limiting a particular feature type to a singular appearance on a given epipolar line in the captured image, the association of that particular feature and its image reference coordinate can be made. The unambiguous association between a particular feature and its image reference coordinate leads to correct determination of displacements and thereby correct determination of 3D coordinates of an imaged object. Therefore each epipolar line has at most one feature of a given feature type. So each (A) type feature in the pattern P1 falls on a different epipolar line, each (B) type feature falls on an independent epipolar line, and so on for all pattern features. Since each feature type appears at most once on any epipolar line, a feature's position in a given image may be compared with a known calibrated reference coordinate along that line to determine the coordinate in 3D space from which the feature is reflected. For each image in a stream of images, the displacement of each feature determines a new set of 3D spatial coordinates that provide a 3D depth map of the currently imaged object location.

Similarly, each epipolar line preferably has multiple features so long as they are of distinguishable types. For instance, with reference to FIGS. 1A-1D, it is noted that features 28 b and 28 d are both found on the same epipolar line β, yet may be compared to respective calibrated reference coordinates since they are of different, distinguishable feature types.

So in summation, as a result of the internal structure of the code and the projection approach, each epipolar line has at most one feature of a given feature type. Again, although the pattern is cyclical and therefore feature types appear many times in the pattern, the above described placement of same feature types onto separate epipolar lines means there is no confusion between multiple appearances of that feature type in the image.

With reference to FIGS. 1A-1G, image processing device 36 preferably contains at least the image processing engine used to identify (1) features and their associated epipolar lines in the captured 2D image and (2) feature locations upon their epipolar lines. The image processing device typically also has a database containing the calibrated image reference coordinates for all features in the pattern. The processing device also computes the displacement of each identified feature from its associated image reference coordinate in the stored database. Triangulation-based computations then are used to assign three dimensional coordinates in space to each identified feature to derive a 3D point cloud of the imaged object. These triangulations-based computations are preferably stored in a table in memory to aid in fast processing of 3D spatial coordinates. Further processing of the point cloud may be optionally desired. Such processing may include determining a 3D surface or mesh from the 3D point cloud for a richer, life-like 3D image/video. Texture data may be added as well. Such processing of the point cloud may utilize known processing engines for three dimensional point cloud processing.

As such, through novel techniques described herein combining the above principles of epipolar geometry together with structured light projection and encoding/decoding schemes, the present embodiments provide for high resolution, high accuracy 3D imaging, such as that prescribed for HDTV, 4CIF, mega-pixel imaging and similar applications. In preferred embodiments, for short distances, accuracy is obtained of less than one millimeter. That is to say, the triangulation error is +−1 millimeter.

As stated, this system and method may be preferably implemented even where the objects) is(are) in motion, as preferred embodiments of the invention utilize the projection of a single coded pattern. At each time interval determined by the imaging apparatus, only a single projection of the encoded light pattern is needed to capture surface points of objects, thus enabling successive images to capture changing surface points of objects in motion. That is to say, objects in the scene and/or the camera and projector system may move in a three dimensional space relative to each other, thus enabling the dynamic depth capture of three dimensional objects in motion. As the object moves, the three dimensional coordinates of the object in a Euclidian space dynamically change. Thus, depth change over a series of captured images is reflected in the movement or displacement of features along their respective epipolar lines for each captured image. As a result, different point clouds are derived for each image frame.

In preferred embodiments, the imaging apparatus and the projector are typically contained in a single device housing. The projected two dimensional light pattern may be projected by any light source, including but not limited to a video projector, a slide projector in the case of a printed pattern, or laser/LED projectors. The use of single pattern projectors in preferred embodiments allows for the straight forward use of diffractive projection, which leads to low power consumption, compactness, noise filtering due to narrowband type signals, and strong suitability to invisible NIR radiation applications. The imaging apparatus may be a proprietary or off the shelf video or still camera typically with CCD or CMOS sensor. It is further understood that the epipolar lines in a captured image may be of nonlinear shape and the linear lines in FIGS. 1A-1G and FIG. 3 are for illustration purposes only.

Reference is made to FIG. 4, which is a simplified flow chart and diagram illustrating how the corresponding 3D spatial locations of identified features in the captured 2D image are derived. The flow chart of FIG. 4 begins from the 2D image capture stage, stage 74, also seen in FIG. 2. Three different exemplary feature types, to (A), (B), and (C), share an epipolar line in the captured 2D image 84 which includes both the imaged object in 2D and the reflected pattern. The exemplary feature types in the coded pattern are projected onto an imaged object and all are subsequently observed along a single epipolar line E₁ in 2D image 84, seen as step 76. As explained above, for each feature identified in the captured image, a calibrated reference coordinate exists, and a reference coordinate database 40 of these points is typically stored in the image processing device. The displacement of a captured feature from such, a reference coordinate location along the epipolar line (step 78 a) is used to calculate through triangulation methods the 3D point in space (step 78 b), or depth coordinate, from which the feature was reflected. Notably, steps 78 a and 78 b are combined and seen as step 78 in the flow chart of FIG. 2. The sum of all such triangulated features gives rise to a 3D point cloud 80 of the imaged object. In preferred embodiments, the point cloud 80 is further processed to obtain texture and surface for the 3D image/video image, step 82.

Since the feature types shown are distinct, all three may be readily compared to respective reference coordinates along the epipolar line E₁ in 2D image 84. If there were more than a single appearance of say (B) on the epipolar line, then ambiguity would result when attempting to associate each appearance of (B) to the corresponding reference coordinate. Ambiguity as a result of multiple appearances of feature types on a single epipolar line would perforce lead to triangulation errors and false measurements of spatial locations on the imaged object. The embodiments of the present invention therefore ensure at most a singular appearance of any given feature type on an epipolar line, herein referred to as epipolar separation, to ensure a one to one matching process between an observed feature and its reference coordinate.

Again, in the present embodiments, the imaged object may be still or in motion. If the imaged object is in motion, then the steps 74-82 are repeated to provide 3D video. Alternatively, the imaging and projector apparatus may be in motion relative to the object. In dynamic applications, triangulation equations are computed at video frame rates to give real time three dimensional coordinates of the object(s) in motion.

Furthermore, as will be shown in the figures below, as the total number of distinguishable epipolar lines in the captured image increases, the encoded light may be projected in a manner that allows for more appearances of features in the captured image. The total number of distinguishable epipolar lines may increase due to many factors, including but not limited to feature structure or shape, a low noise level as a result of better sensor capacity, optical characteristics of the system, or more accurate coordinate detection algorithms. It is appreciated that the present embodiments utilize a rectified imaging system, meaning that the plane of the imaging apparatus and the plane of the projector lie on the same spatial plane. As such, only a vertical or horizontal shift exists between the projector and the imaging apparatus. In such a rectified system, the epipolar lines in the captured image together comprise a unidirectional epipolar field.

FIG. 5 shows further exemplary point clouds derived through the methods of embodiments of the present invention. Illustration 86 shows a frontal view of a point cloud of person waving. Each point in the cloud has a three dimensional (x, y, coordinate in space. Illustration 88 shows a side view that provides another depth perspective.

Reference is made to FIG. 6A. The bottom right of the figure shows image I_(P1) of FIG. 3, which is an image of the reflection onto an image sensor of projected pattern P1. FIG. 6A now shows a schematic representation 500 of the reflected pattern in image I_(P1) after being projected in accordance with the epipolar separation principle discussed above. That is, the light pattern P1 is constructed and projected in such a manner that any given feature type appears at most once on any given epipolar line in the captured image I_(P1).

In the present embodiment, the singular appearance of any given feature type on an epipolar line is achieved through the orientation of the projected periodic right code P1 at a suitable tilt angle with respect to the direction of the epipolar field. The epipolar field is vertical in this example and denoted by epipolar lines 102A, 102B, and 1020. The schematic diagram 500 of the reflected light pattern shows a periodical or cyclic tiling of identical 10×2 matrices 90. Each matrix has twenty feature types A-T. The matrix pattern repeats itself over the length and width of the image.

Now, when the pattern projection is rotated at an angle specified as 94 in the figure, the periodic pattern of feature types in the image repeats itself on any given epipolar line over length H₁. Thus, for each distinguishable epipolar line over the imaging apparatus vertical field of view H₁, any feature type appears at most once. By tilting the projection angle of the pattern, the separation of same feature types onto distinguishable epipolar lines is achieved. For example, features 96, 98, and 100, which repeat in the y-direction of the pattern every other feature, are separated onto separate distinguishable epipolar lines 102A, 102B, and 102C, in the captured image. Resultantly a significant number of features can be identified over the entire image area. The total number of identified features in a captured image is referred to as image capacity or coverage.

Thus, epipolar separation of the tight periodic code allows for a large number of identifiable features to be captured in the image leading to high resolution. Furthermore, the periodic nature of the pattern allows for a coded pattern containing a small number of repeating features types, thereby enabling each feature to remain small in size and further contributing to high resolution images. On a typical sensor with 640×480 pixel resolution, each feature may be approximately 10 pixels. This translates into an image capacity of approximately 31 thousand features for every frame, and thus 31 thousand 3D spatial coordinates.

Distances denoted as D₁ and D₂ are equidistant distances between distinguishable epipolar lines. It is understood that other epipolar lines theoretically exist between epipolar lines 102A and 102B and between 102B and 102C, however they are not distinguishable by the image processing device. The known horizontal distance between distinguishable epipolar lines is a function of the imaging apparatus and image processing device and aids in the definitive identification and verification of reflected features in the image. For example, a reflected feature type (A) 98 is detected in the captured image at a certain y coordinate along epipolar line 102B. Thus, the nearest feature type (A), if indeed captured in the obtained image, can only be found on the nearest distinguishable epipolar lines to the right and left of epipolar line 102B, namely 102A and 102C. Although all epipolar lines are precisely vertical in the figure for illustration purposes, other embodiments are possible wherein the epipolar lines may be lines or curves with varying x and/or y coordinates.

The limiting epipolar line separation factor is the minimum horizontal distance necessary to distinguish between separate epipolar lines in the captured image. The ability to differentiate between features on separate epipolar lines is based on several factors. Firstly, a feature's shape often determines whether the feature has a detectable coordinate location after reflection from an imaged object. A code having features that can be assigned coordinates with greater exactitude, allows for differentiation to between features on ever closer epipolar lines. The object surface type also may have an effect, as features from metallic surfaces, glass, and other transparent or very dark surfaces, for example, are reflected with less exactitude. Low projector SNR and inferior sensor optics may limit the distance between distinguishable epipolar lines.

Reference is now made to Fig GB. As has been explained until now, as long as identical feature types fall on separate distinguishable epipolar lines, each feature type may be identified in the captured image without concern of confusion between them. However, under certain circumstances now to be discussed, where reflected features are known to be found only on pre-defined sections of an epipolar line, then separation of same feature types is even possible along the same epipolar line. Two individual features of the same type on the same epipolar line may appear on only limited sections thereupon in the case where the imaged object moves within a very limited depth range over a series of images. That is to say, if the imaged object movement is confined to a particular distance range from the imaging system, then multiple occurrences of the same feature type may occur over a single epipolar line. If the movement of an imaged object in 3D space is slight, then the corresponding movement of reflected features along their respective epipolar lines is small. In such instances, it is possible to separate multiple appearances of a given feature type on a single epipolar line, where each feature type appears in a pre-defined restricted range along the epipolar line.

To illustrate, we now turn to FIG. 6B, showing the same schematic representation 500 of reflected imaged pattern I_(P1) as in FIG. 6A. Epipolar lines ρ,

, Ø, θ, φ, and β are shown and the image height is now larger, denoted H_(1′), to include multiple appearances of the same feature on a given epipolar line in the image. On epipolar line

, for instance, features 96 and 506 are two individual features that appear on the same epipolar line and are of identical type, namely (A). If each of these features is free to appear on any pan of the epipolar line

in the image, then confusion may arise between the two features during feature identification. As explained, the correspondence between each of features 96 and 506 and its unique reference coordinate would be subject to error. But in the current embodiment, the appearance of feature 96 is guaranteed to appear only on subsection 96A of epipolar line

, while the appearance of feature 506 is guaranteed to appear only on subsection 506A of the same epipolar line

. In such a case, the distance between the two subsections, D

, is large enough so that no concern of confusion between same feature types exists. During the feature identification process, an (A) type feature found on section 506A of epipolar line

in a given image is definitively identified as feature 506, while an (A) type feature found on section 96A is definitively identified as feature 96, Regions 96A and 506A are two well-defined, spaced apart regions. Likewise, the appearance of features 98 and 504 upon epipolar line Ø is only within ranges 98A and 504A respectively. Finally, features 100 and 502 also only appear on respective ranges 100A and 502A along epipolar line θ. In all of the previous three cases, a large enough distance exists between the displacement ranges of two identical feature types along a single epipolar line to enable identification of two separate features of the same type.

One way of having more than a single appearance of the same feature type on an epipolar line is by increasing the image height to H_(1′) from H₁. The increase of the image height results in multiple appearances of the same feature type along epipolar lines in the image. The multiple appearance of same feature types is due to the periodic cycle of the pattern, which repeats itself along the length of the enlarged H₁, or H_(1′). Alternatively, if the resolution of the image sensor is increased and the pattern features are decreased in size, then feature types may repeat themselves along epipolar lines. As long as the depth measurement is limited to a certain range over which the imaged object moves, any given feature along the epipolar line only displaces a short distance for every frame. Thus, even two identical features may be differentiated on a single epipolar line, so long as the sections of the epipolar line upon which they shift are limited and spaced far enough apart. The division of the epipolar line into predefined sections is a function of the depth range limitation. Through such depth range limitations, more points are sampled in the image and resolution is further increased as the number of depth readings in the captured image is greater.

We now refer to FIG. 7, which is a simplified illustration of a captured image of a preferred light pattern projected in accordance with epipolar separation to ensure that same feature types fall on distinguishably separate epipolar lines. The figure illustrates the geometric principles that provide a significantly high number of identifiable features through projection of preferred patterns at angles to the epipolar field. The angling of the projected periodic pattern ensures that same feature types are captured on separate distinguishable epipolar lines. The features are preferably comprised of unique combinations of spatially arranged sample points, and the number of sampled points in the captured image is referred to as the image capacity or coverage factor.

The question that could be asked is: Why not construct a code having as many feature types as needed to cover the image frame, denoted by sensor height B, without the need for epipolar separation? The answer lies in the fact that single pattern imaging systems strive to have feature types as small as possible, thus providing higher sampling density per image. To this end, in spatially encoded methods and systems, it is highly desirable to encode the projected light with a minimal amount of feature types, since each feature type is represented by a spatial code of some finite area. That is to say, the less features in the code, the smaller pixel area needed to encode a feature, as each feature appears on the image sensor as light intensity combinations over a certain number of square pixels. By limiting the number of feature types through a repeating code, the number of pixels needed to represent a given feature type is minimized. As such, the number of identifiable features in the 2D image is increased, and thus the number of corresponding point cloud points, or point cloud density, is increased as well. A higher number of point cloud points leads to higher resolution 3D images.

As such, it would not be effective or desirable to encode a large amount of feature types in order to obviate the epipolar line separation techniques employed in the present embodiments. Through the techniques of epipolar separation described in the embodiments, a rather small matrix code can provide “inflation” of the image capacity, as more uniquely identifiable features may be observed for each captured image frame.

FIG. 7 illustrates a schematic image of a projected coded pattern 104 comprised of a series of 10×2 matrices of feature types, wherein the projection is again at an angle to the epipolar field. Each feature of the pattern has square pixel size C×C. As such the length of each periodic matrix in the pattern is XC=10C, while the height is YC=2C. The distance P represents the horizontal distance in pixels between distinguishable epipolar lines in the image. As seen, the projected pattern 104 is rotated at an angle 106 with respect to the epipolar field. It is shown that every other feature in the Y direction of the pattern, or in other words every reoccurrence of the same feature, falls on a distinguishable epipolar line. It is appreciated that the matrix may take on various sizes, and this size is only an example for illustration purposes. Using geometric principles, in can be proven that the triangle with sides H-U-V and the triangle with sides YC-h-P are similar triangles, and thus the following general equation holds;

H/U=YC/P where U=XC→H=XYC²/P

H is thus the number of pixels appearing on epipolar line 108. As the epipolar separation P is decreased, angle 106 becomes smaller. From the equation we see that, for a constant pattern area size, if only the epipolar line separation P decreases, then H grows larger.

For example, feature 110, an (A) type feature, occurs only once, as desired, over the epipolar line 108. Feature 112 represents the next occurrence of feature type (A) after feature 110, and represents the upper limit of the image height. If the distance P between distinguishable epipolar lines is decreased, angle 106 is decreased in turn, and the same coded pattern with the same number of features is thus rotated less from the epipolar field. Identical features are now separated by closer epipolar lines that are still distinguishable, and the effect of rotating the projected pattern to obtain epipolar separation becomes more apparent. Feature 110 repeats itself over an ever greater distance on epipolar line 108, thus expanding the value of H and thus the number of uniquely identifiable features, or resolution, in the image. The lower limit of angle 106 occurs when epipolar lines are no longer distinguishable, that is to say, the same feature type falls on two adjacent epipolar lines that are too close to accurately be distinguished.

From the equation, we see that so long as the overall matrix size does not change any combination of X and Y dimensions of the matrix has no effect on the image coverage. For instance, if the Y component of the matrix code is increased and the X component decreased, say from a 10×2 rectangle, as shown, to a 5×4 square-like shape, we now have a matrix shape closer to a square rather than a long skinny rectangle. However, the overall matrix area (XY) remains the same. The angle 106 is decreased and the pattern is rotated less from the epipolar field to ensure epipolar, separation on each distinguishable epipolar line. As seen from the equation 14 remains the same, and thus the image coverage is not increased.

Notably, the matrix structure is such that the length of periodicity in the X direction is much greater than that in the Y direction. Such a matrix code structure is referred to herein as preferred direction coding. It is advisable for X to be much larger then Y in terms of practical optic assembly, calibration, operational physical and sensitivity. For example, vibrations or other shaking of the imaging system can cause a very small rotation angle 106 to become too small for epipolar differentiation. Furthermore, a smaller angle of rotation as a result of non preferred direction encoded patterns requires decreasing the image field of view by a larger safety factor in order to ensure epipolar separation.

Reference is now made to FIG. 8, which is an illustration of the captured image of FIG. 6A with reflected light pattern 500 now projected at a smaller rotation angle 114 with respect to the direction of epipolar field. The distance between distinguishable epipolar lines is decreased to d₁. Features 116, 118, and 120, are identical feature types that repeat themselves every other feature in the y-direction of the pattern. These features now fall on epipolar lines 122A, 122B, and 122C. According to the equation described in FIG. 7, since the pattern has not changed, meaning X, Y, and C are constant but P decreases, H becomes larger. Therefore, H₂ is a larger vertical image height than H₁ of FIG. 6A, providing more sample points and thus higher resolution in the captured image. The imaging system can now sample more points in the captured image before encountering ambiguity, meaning without possibly encountering the same feature type along the same epipolar line. Alternatively, instead of increasing the image field of view, a pattern with smaller features may be projected using a high resolution sensor.

However, when angle 114 is decreased too far, undesirable system ambiguity occurs. When angle 114 becomes too close to 0 degrees, any slight movement or shaking in the calibrated projector/imaging apparatus may cause a distortion and obstruct clear epipolar line distinction. In addition, as the periodic matrix in the pattern decreases in the X direction and increases in the Y direction, such as the almost-square shape mentioned above, the projection angle needed to ensure that H is not decreased, requires that P decrease to a point which is too small to provide a safe horizontal distance for epipolar line distinction. As a result of the above geometric factors and additional factors to account for possibility of error, the code preferably utilizes a preferred directional code in the X direction. Although the present embodiment utilizes a rotated pattern to achieve the result of epipolar separation, other embodiments including but not limited to skewing the projected pattern exist.

Although in the previous embodiments the projected pattern P1 is periodic, it is understood that in alternate embodiments other coding schemes are possible, including but not limited to non-ordered and/or non-periodic coded patterns that may be projected to achieve epipolar separation. The previous embodiments have described spatial coding techniques using a uniquely structured spatially encoded pattern P1 Nonetheless, it is appreciated that further embodiments may include temporal coding, spectral coding, a combination thereof, or any other two dimensional coding scheme or combination thereof, including combinations involving spatial coding embodiments such as those described herein, that enable differentiation of a plurality of feature types along distinguishable epipolar lines. Examples of such embodiments are now given.

Reference is made to FIG. 9A, which is schematic diagram of a non ordered and non periodic pattern. It is appreciated that each feature type, numbers 1 to 6 in the figure, appears not more than once on any give epipolar line. Exemplary epipolar lines are 124, 126, and 128.

Reference is made to FIG. 9B, which is a table of possible coding methods according to which it is possible to implement the embodiment of FIG. 9A. It is possible, for instance, to replace each number with a color code. For instance 1 is replaced with a blue spot of light, 2 a green spot, and so on. Another alternative is temporal coding, where at each of three consecutive time intervals, t1, t2, and t3, at each number in FIG. 9A, either a white spot or a black spot appears. A white spot means that a light point was shined at that feature location at that time interval. A black spot means no light was shined at that feature location at that time interval.

A still further example is a spatial coded pattern. This spatial coding is a pattern similar to dominoes. The final example is one of polarization based encoding. In such a coding method, polarized points of light are projected. The difference between features lies in the angle of polarization. In the table, each sequential feature has a polarization angle that differs 30 degrees in the counterclockwise direction. The spatial code may also be similar or identical to the code seen in FIG. 2 and FIG. 10 below.

In temporal coding techniques, wherein more than one pattern is projected on the object for each captured image, it is understood that limitations may have to be placed on the speed of motion of the object being imaged.

Other structured light coding techniques may include bi-tonal, grey level, and/or multi-spectral techniques.

Reference is now made to FIG. 10, which are illustrations of exemplary feature types that comprise preferred encoded pattern P1. Features A-J are examples of binary spatially coded feature types. Each feature is comprised of a spatial combination of five black and white points, made up of a black (local minimum) or white (local maximum) center point 130 and four black or white peripheral or “saddle” points 132. All possible combinations of the five black and white points lead to an alphabet of 32 unique characters or feature types. The exemplary feature types in FIG. 10 are arbitrarily named A-J, each corresponding to a different combination of a center point and four saddle points. A feature type having a white center point corresponds to a local maximum illumination intensity in the projected pattern, while a feature type having a black center point corresponds to a local minimum illumination intensity in the projected pattern. The peripheral points of each letter correspond to illumination intensities that are neither maximum nor minimum, where a white peripheral point is closer to maximum intensity than minimum intensity and a black peripheral point is closer to minimum than maximum intensity. It is noted that other embodiments may use features having combinations of more or less saddle points. For instance, if each feature contained six saddle points, an alphabet now exists of 128 unique characters or feature types and thus a larger pattern period. Such encoded features would be suitable for applications of larger patterns with more sampling points, such as high-resolution mega-pixel imaging.

To illustrate further, reference is made to FIG. 11, which is an illustration of the exemplary pattern P1 as seen in an image I′_(P1) after being reflected from an imaged cube 134. The periodic pattern comprises the features types described in FIGS. 3 and 10. A close-up of the image showing one part of the cube is shown at the bottom of the figure. White center point 136 represents a maximum intensity reflection within the immediate surrounding pixel area of the image. Black center point 138 represents a minimum intensity reflection within the immediate surrounding pixel area of the image. White saddle point 140 shows a reflection intensity that is closer to a maximum than a minimum. Black saddle point 142, is the opposite, and shows a reflection intensity that is closer to a minimum than a maximum.

When features of the projected pattern are reflected from an imaged object onto an image sensor, each of the five points of any given feature becomes a sample point in the captured image. These sample points are contained on adjacent sensor pixels upon which the reflected feature has been imaged. It is understood that whether a particular sample point is a maximum, minimum, or saddle is dependent on the projected light intensity on that point as well as the reflectance properties of the material of the imaged object at that point.

The maxima, minima, and saddle points are preferably extracted through identifying their derivatives in the image. This means that they are determined through local variations in illumination. For example, a white center point of a projected feature, representing a local maximum illumination intensity in the projected pattern, receives a low pixel(s) intensity or grey-value on the imaging sensor if reflected off of a dark surface. If such a center point were decoded independent of its surrounding sample points, the decoding engine may mistakenly interpret the low intensity value as indicating a local minimum, or black center point. However, when analyzing the surrounding pixels of a white sample point reflected from a dark surface, the decoding engine will see pixel values of even lower intensity, and thus a correct identification of the sample point as a local maximum occurs.

Likewise, a black center point of a projected feature, representing a local minimum illumination intensity in the projected pattern, receives a high pixel(s) intensity on the imaging sensor if reflected off of a bright surface. Again, a direct intensity evaluation of such a sample point would falsely identify a feature containing a local maximum, or white center point. However, by measuring the changes in local intensity around such a point, the decoding engine will recognize pixel values of even higher values. As a result, a correct identification of the sample point as a local minimum occurs. Therefore, when analyzing an image of the reflection of a single projected pattern critical point detection is used. Critical point detection means that changes in local illumination intensity by known derivative analysis methods are used rather than direct intensity evaluation to ensure correct feature detection in the decoding process.

Furthermore, known relative distances between features, a result of epipolar geometry principles discussed above, as well as common feature characteristics as a result of the above described encoding scheme, enable reliable and accurate differentiation of extrema, meaning maxima or minima, and saddle points from, false readings that arise from noise and textural differences on the imaged object.

Known values of neighboring saddles and maxima are further utilized for the feature validation process and error correction, possibly by the cross referencing of adjacent point grey values. For instance, in the identification and validation process, certain characters within the known alphabet may be eliminated if their spatial value arrangement contradicts those of known neighboring characters. Another method for decoding feature identity is by the integration of semi validated characters to known groups of characters. An example case is where one of four saddles is not clearly identified, but the other three have been validated. It is understood that many different implementations of character recognition are possible, including frequency analysis or any other methods known in the art.

It is appreciated that the encoding scheme is not limited to a binary code, nor to any preferred optical implementations of binary code, such as bi-tonal, monochromatic, or bi-polar projection, and as in several examples given in previous embodiments above may be implemented in other ways, including but not limited to spectral coding, non periodic coding, and temporal coding.

Reference is now made to FIGS. 12A and 12B, which illustrate the construction process and the encoding scheme inherent in pattern P1. First referring to FIG. 12A, the process begins with a Debruijn sequence 144. The sequence 144 is created over a character space S Σ={0,1,2,3}. The series has a length of two, meaning that every sequence of two numbers appears at most once. Therefore, the length of the DeBruijn sequence is |S|=|Σ|²=4²=16.

Matrix 146 is generated from matrix 144 by replacing each number in matrix 144 by its binary representation, where each binary number is written column wise. Matrix 148 is obtained from matrix 146 by flipping even columns, in other words binary values in the upper row of even columns of the matrix are moved to the bottom row and visa versa. The flipping of even columns in matrix 146 is performed to avoid a situation of code duplicity, meaning to ensure that no letter appears more than once in any given cycle of the matrix in the pattern.

We now turn to FIG. 12B. The matrix 148 of FIG. 12A is mapped into a two dimensional matrix of rhombi 150, having two colors of grey, each color representing a 1 or 0 in matrix 148. This two color grey pattern is repeatedly mapped onto a pattern 152 of black, white, and grey rhombi. The resulting pattern 154 is formed, having four colors of grey. Every grey rhombus of pattern 150 colors one of the grey rhombi in pattern 152 one of two shades of grey. The black and white rhombi remain unchanged. In the next two steps, the binarization of rhombus pattern 154 is carried out, possibly by Gaussian smoothing followed by obtaining what is referred to as a sharp intensity threshold, although other techniques are possible. The resulting pattern P1, as shown initially in FIG. 3, provides a bi-tonal sharpened pattern for projection that allows the epipolar separation techniques described above.

It is understood that the encoding described herein is a mere single way of constructing a viable two dimensional light code having multiple feature types to be used in preferred embodiments of the present invention, and other code types, such as Perfect Maps, M Arrays, and pseudo random codes are possible.

Reference is made to FIG. 12C, which are simplified illustrations of the sample points in the pattern P1 after being reflected from an imaged object and viewed as part of a captured image in an imaging apparatus. Pattern 164 is a close up of pattern 154 of the previous figure. The thirty two binary values of matrix 150 are seen as thirty two saddle points 168. Each of these thirty two saddles points becomes a sample point. Each group of 4 saddle points has a black dot 170 or white dot 172 in the center. The black and white clots are black and white rhombi in pattern 154, and become sample points as well. Altogether, there are 64 sample points in every cycle of the code in the pattern. These points are shown in the brightened area 173. Pattern 166 is a close up of pattern P1. In pattern 166, the sample points are seen after the pattern is processed with Gaussian smoothing and sharp intensity threshold.

Reference is made to FIG. 13, which illustrates a preferred projection and imaging method that enable epipolar separation techniques described above. Once again, the encoded light pattern P1 of previous embodiments is shown. The encoded light pattern is seen here, as in FIG. 3, rotated a certain angle in relation to the epipolar line 174 in the captured image, thus placing same feature types of the code on separate epipolar lines. The angle of rotation is described by the following equation.

Sin⁻¹(P/YC)

By selecting the angle of rotation, the epipolar separation techniques described above may be carried out. Calibration methods known in the art are used to determine the exact location of the epipolar lines in the captured image. Furthermore, to ensure that no two identical features of the code repeat themselves on a given epipolar line, the image height H is limited in the imaging apparatus, as exemplified by the brightened area 175 in the pattern. As a result, each diagonal column for every period is cut by a different epipolar line. Each epipolar line in the captured image therefore contains one and only one feature of each type. If the measured depth range is limited, then as discussed above in FIG. 6B, more than one of the same feature type can appear on each epipolar line in the image. The image height H in pixels can be described by the equation in FIG. 7 above. Since the aspect ratio of the shaded area is 4/3, the total surface area in terms of sampled pixels is defined by the following equation:

A=H²(4/3)=X²Y²C⁴/P²(4/3)

Reference is made to FIG. 14, which show image I_(P1) and exemplary characters or feature types of pattern P1. Characters 176 represent features encoded over every period of the pattern, the nature of such features being described above in FIG. 10. It is noted that the assignment of letters to feature types in the current figure is independent of FIG. 10. The length of each period of the pattern P1 is 16 and the height is 2. That is to say, same feature types belong to either the same diagonal column, for instance identical features A and E, or to columns modulo 16, for instance identical features A and F. Modulo 16 means that same features are distanced periodically every 16 diagonal columns. However, features from diagonal columns that are not modulo 16 are always of different types, such as features A, B, C, and D. On every diagonal column only two different feature types appear in an alternating fashion, one feature having a black center value and one with a white center value, for example A and G. As explained, features A, E, and F are individual features appearing in the pattern that are of the same type. For purposes of clarity, these individual features are only referred to as feature type (A) in FIG. 3 and other figures where P1 is shown, while in the current figure, each separate feature is assigned a unique letter, A, E, and F respectively.

Again, the rotation of the grid pattern ensures that every two identical features that appear in an alternating fashion on each diagonal column do not fall on the same epipolar line. As an example, features A and B are two individual features in the pattern that are of the same type. Feature A falls on epipolar line 178. Feature E, identical to feature A, is found four features below A on the same diagonal line. On this diagonal line, the A/E feature type occurs every other feature. Feature E falls on epipolar line 180, horizontally differentiable from 178. We see that each feature in the image can be expressed in terms of its feature type and its associated epipolar line.

The above embodiments discuss the projection of a single pattern onto an imaged object. The projection of a second pattern can provide further valuable information in determining the third or depth dimension. In particular, dual projection together with dual imaging may significantly increase the accuracy and reliability of feature type identification as well as provide new ways of reaching extremely high resolution in depth readings. Moreover, in certain embodiments, texture information may be extracted from the information obtained from the dual projection methods discussed herein.

Dual projection methods may include both temporal methods and/or spectral methods. Temporal methods are such where two or more patterns are projected over separate time intervals. Spectral methods are such where two or more patterns are projected with differing frequencies of light. Temporal methods may be implemented, for example, by a piezo shifter. Spectral methods may be carried out by laser masks that allow for projection of multiple patterns under different frequencies. Both temporal and spectral methods may be carried out by a prism, or other optical multiplexer.

In the embodiments below, in the case of spectral-separation implementations, spectral separation is preferably small so as to allow for direct comparison of reflection intensities. That is to say, two identical patterns projected onto an imaged object at different but adjacent frequencies will reflect with substantially identical reflection intensities. Similarly, two opposite patterns projected onto an imaged object at adjacent frequencies will be reflected as opposite intensity images. So for instance, in a first image I′_(P1) a high intensity or white spot is projected onto a particular bright surface at a certain frequency and is completely reflected. In a second inverse image I′_(−P1) a low intensity or black spot is projected onto the same bright surface at an adjacent frequency and is completely absorbed. Since the black spot in I′_(−P1) is projected at an adjacent frequency, the black spot behaves in an opposite manner to the projected white spot in I′_(P1) for the given surface, and is completely absorbed. Likewise, white spots projected at the two adjacent frequencies in the images both reflect in almost identical manners. Black spots projected at the two adjacent frequencies in the images both absorb in almost identical manners.

Reference is made to FIG. 15, which is an illustration of a preferred dual projection and dual imaging embodiment of the present invention. I′_(P1) is an image of a Rubik's Cube having pattern P1 of the previous embodiments, as explained in detail in FIGS. 3 and 11, projected upon the cube. Image I′_(−P1) is a second image of the cube having the negative of the pattern P₁ projected thereupon. Finally, the image I′_(P1)−I′_(−P1) is the resultant image obtained from the subtraction of I′_(−P1) from I′_(P1). Close-ups 182 and 184 are the respective pattern reflections from the middle square of the lower row of the cube in image I′_(P1) and I′_(−P1). In both images I′_(P1) and I′_(−P1), an imaged white point is a result of a projection and thereafter reflection of a maximum light intensity on that surface location of the imaged cube. Likewise, an imaged black point is a result of a projection and thereafter reflection of a minimum light intensity on that surface location of the imaged cube. So, if in I′_(P1), a reflected white point is seen at a particular surface location on the cube, then in I′_(−P1) a reflected black point is observed at the same surface location on the cube. For instance, white maximum point 186 seen in image I′_(P1) is seen as black point 188 in image I′_(−P1). Likewise, white saddle point 190 in image I′_(P1) is replaced by black saddle point 192 in image I′_(−P1).

As the Rubik's Cube contains squares of varying colors, the reflected pattern shows high contrast when reflected from squares of bright colors, such as 194, and less contrast when reflected from squares of darker colors, such as 196. This is a result of the fact that the energy of projected white spots, or light intensity maxima, is reflected from bright surfaces to a much larger extent than the energy's reflection from dark surfaces, where much of the energy is absorbed. A projected white spot, reflected from a bright colored surface appears white in the image, signifying an area of the imaged object with high intensity reflection. In contrast, when a projected white spot is reflected from a dark colored surface, the reflected white spot appears much closer to black in the image, signifying an area of the imaged object with low intensity reflection. In either case, however, a projected white spot will always reflect from any given imaged object surface point at a higher intensity than a projected black spot on that same point.

Therefore, no matter what the imaged surface reflectance characteristics are, an imaged black point will always have a reflection intensity lower than an imaged white point at the same location on the imaged object surface. Thus, the subtraction of a black point intensity value 188 at a particular location in image I′_(−P1) from a white point intensity value 186 at the same location in image I′_(P1) will always yield a positive intensity value 200. Likewise, the subtraction of a white paint 202 in image I′_(−P1) from a black point 204 in image I′_(P1), both at the same image location, will always yield a negative intensity value 206. For image processing applications, a normalized scale may be used to represent both positive and negative resultant intensity values.

By projecting a pattern and the pattern negative on an object, and subtracting the image of the reflected negative pattern from the image of the reflected original pattern, maxima and minima locations in image I′_(P1) may be determined directly by a measure of the grey-level or intensity of the same image locations in resultant image I′_(P1)−I′_(−P1) positive intensity values in the I′_(P1)−I′_(−P1) image indicate a white spot while all negative intensity values in the I′_(P1)−I′_(−P1) image indicate a black spot. Again, since negative intensity values may not be understood by many graphics applications, a normalized scale may be used. This direct measure of maxima and minima with such a dual projection is unlike the single pattern projection case described above in FIG. 11. In the case of single pattern projection, the additional analysis of local intensity values of surrounding points to the maxima and/or minima is preferred to ensure a higher level of correct feature type identifications. Therefore, the subtraction method of the present embodiment allows for a more robust pattern recognition analysis and thus a more reliable and powerful engine for derivation of 3D spatial coordinates from identified features in the captured 2D image.

Furthermore, the dynamic range of the intensity values in the I′_(P1)−I′_(−P1) image is doubled by the subtraction of the two patterns. This gives rise to a more accentuated pattern and thus aids in feature type recognition. Another advantage is the cancellation of the effect of ambient light on the resultant image I′_(P1)−I′_(−P1). The resultant image shows an accentuated pattern without the interference of imaged object texture seen in images I′_(P1) and I′_(−P1) as a result of ambient light.

It is understood that the two images may be taken temporally or at the same time through use of spectral differentiation. Likewise, the two patterns may be projected with spectral separation, at the same time or temporally, or both patterns may have the same frequency but the projections are separated in time. So long as the spectral separation is close, the reflection intensities of the two reflected patterns will be virtually exact opposites at any given imaged object surface location.

Reference is made to FIG. 16, which is an illustration of the addition of the two to images, I′_(P1) and I′_(−P1). The addition of the two images with opposite pattern illumination intensities projected thereupon leads to a cancellation of the pattern in the I′_(P1)+I′_(−P1) image. This is because the addition of any two reflection intensities for any given identical location in the two images leads to a resultant image showing the reflection of maximum light intensity from all points on the object. The variations in reflectance intensity are thus a only a function of the texture of the imaged object. That is to say, the changing texture of the imaged object affects the reflection intensities with which a white point is reflected from the various points of the imaged object. The resultant image separates the texture of the depth imaged object from the imaged pattern observed in images I′_(P1) and I′_(−P1).

Reference is now made to FIG. 17, which is a preferred embodiment of a dual projection and dual imaging method of the present invention. I′_(P1), as in previous figures, is an image of a Rubik's Cube having the pattern P1 projected upon the cube. Image I′_(−C) is a second image of the cube having the same pattern as in I′_(P1) projected thereupon only the maxima and minima are switched. That is to say, a maximum 186 in image I′_(P1) is seen as minimum 210 in image I′_(−C). However, white saddle point 190 in image I′_(P1) remains white saddle point 212 in image I′_(−C). Thus, a maximum is replaced by a minimum and visa versa, but the saddle points remain unchanged in both images. Finally, image I′_(P1)−I′_(−C) is the resultant image from a subtraction of image I′_(−C) from image I′_(P1).

As seen in close up 214, what remains in the image I′_(P1)−I′_(−C) are the maxima and minima, sometimes referred to as the carriers of the code, Again, for any given location on the image sensor, a reflected local intensity maximum point in image I′_(P1) is replaced by a reflected local intensity minimum point in image I′_(−C). The local intensity maximum appears as a white spot in the image, while the local intensity minimum appears as a black spot. The saddles are identical in both images. So, for instance, when the intensity value of location 210 in image I′_(−C) is subtracted from the intensity value of the same location 186 in image I′_(P1), white spot intensity value 216 is obtained in the resultant image I′_(P1)−I′_(−C). Similarly, when the intensity value of location 218 in image I′_(−C) is subtracted from the intensity value of the same location 220 in image I′_(P1), black spot intensity value 222 is obtained in the resultant image I′_(P1)−I′_(−C). In contrast, when saddle point 212 in image I′_(−C) is subtracted from the saddle point 190 of the same intensity and same image location, a cancellation occurs. That is to say, all the saddle points in the image are cancelled by the subtraction. Moreover, the subtraction of the two images leads to a cancellation of ambient light.

The resulting image I′_(P1)−I′_(−C), being one of just maxima and minima, can now easily be scanned for maxima and minima locations. As explained above, in FIG. 10, the maxima and minima in the imaged pattern represent the center points of reflected features in the pattern. As saddles do not exist in the resultant image, the search for maxima and minima is thus simplified, and becomes faster and more error-proof. These maxima and minima then indicate the existence of a feature and their epipolar line location in the image may be determined. What remains is to determine feature type by identification of the saddle points. This may be done by either analysis of I′_(P1), as in the single pattern case, or as described next.

Reference is made to FIG. 18, which shows the addition of the two imaged patterns of FIG. 17, I′_(P1) and I′_(−C). The addition of the two images leads to a resultant image that shows the reflection of maximum light intensity for all carrier locations. In other words, all former carrier positions become white in the resultant image. Only the saddle points remain. The addition of the two images leads to the addition of two opposite carrier reflection intensities at identical locations in the two images. In contrast, the saddles are identical in both images, so the addition of the two images leads to an accentuation of the saddle points.

For instance, in close-up 224 of the middle square of the middle row of the image, a black feature with center point 226 is shown. The feature's two upper saddles 228 and 230 are black. The bottom left saddle 232 is also black while the bottom right saddle 234 is white. In close up 236 of the same place on the Rubik's Cube in the I′_(−C) image, the same feature now has white center point 238 instead of black. The saddles 240-246 remain the same. Therefore, the resultant image close-up 248 shows the four saddles 250-256. Since all carriers become white in the resultant image I′_(P1)+I′_(−C), the saddles may be clearly identified without confusion with local maxima and minima. FIGS. 17 and 18 show that the separation of the carriers from the saddle points allows for a more robust decoding process as the detection of carriers and saddles is simplified. Image I′_(P1)−I′_(−C) provides the carrier detection and location information while image I′_(P1)+I′_(−C) provides the saddle detection information.

Reference is made to FIG. 19, which is an illustration of the resultant image obtained from the absolute value of the subtraction of image I′_(−P1) from image I′_(P1). The resultant image 270 is an outline of the pattern. Since the two images are opposites of each other, as discussed above in FIGS. 15 and 16, the individual patterns can be expressed as two opposite sinusoidal curves seen in graph 260. Bach local maximum and white saddle location in the I′_(P1) image is replaced, respectively, by a local minimum location and black saddle in the I′_(−P1) image. Conversely, each local minimum and black saddle location in the I′_(P1) image is replaced, respectively, by a local maximum location and white saddle in the I′_(−P1) image. The absolute subtraction of any two carriers from identical locations in the two images leads to a maximum reflection intensity spot in the resultant image |I′_(P1)−I′_(−P1)|. Similarly, the absolute subtraction of any two saddle points from identical locations in the two images leads to a white or maximum saddle point in the resultant image. Therefore, any maxima, minima, or saddle point are white in the image |I′_(P1)−I′_(−P1)|. This is seen in close up 272 of the resultant image.

The dashed curved lines 262 and 264 indicate the border areas between black and white spots of the respective images I′_(P1) and I′_(−P1). On the sinusoidal graph, these dashed curved lines are represented by the meeting point, or the 0 point, between the respective graphs of images I′_(P1) and I′_(−P1). Where these points meet, the result of the absolute subtraction |I′_(P1)−I′_(−P1)| is 0. These meeting points occur in a two dimensional plane in the resultant image, creating the black outline 266 of the pattern. The black outline represents a minimum in the image 270 and provides a sub-pixel resolution of a continuity of highly identifiable points in the resultant image. Points along this pattern outline can be associated with spatial coordinates through epipolar line separation techniques described in previous embodiments above.

Reference is made to FIG. 20, which is an illustration of the resultant image obtained from the absolute value of the subtraction of image I′_(−C) from image I′_(P1). As discussed in FIGS. 17 and 18 above, the L_(c) image of the cube has the same pattern as in I′_(P1) projected thereupon only the maxima and minima are switched. That is to say, a maximum 186 in image I′_(P1) is seen as minimum 210 in image I′_(−C). However, white saddle point 190 in image I′_(P1) remains white saddle point 212 in image I′_(−C). Thus, a maximum is replaced by a minimum and visa versa, but the saddle points remain unchanged in both images.

The absolute value of the subtraction of image I′_(−C) from image I′_(P1) yields image to 274. The absolute subtraction of either a black or white carrier in image I′_(−C) from either a black or white carrier in image I′_(P1) leads to all white carriers, seen in close up image 276. The black crossings represent the borderline areas between black and white carriers in the I′_(P1) and I′_(−C) images. The borderline areas are the areas where the white carrier begins to become black and visa versa. At the precise borderline, the pixels are neither black nor white, as the value is precisely between a maximum and a minimum. The absolute subtraction of these pixels leads to 0 value, or a black or minimum point in image 274.

Reference is made to FIG. 21, which is an illustration of a particular embodiment of dual pattern projection and dual pattern imaging. The first image is I′_(P1), and the second is an image of the cube with ambient light illuminating the image. The subtraction of the image of the cube with ambient light from the image of the cube I′_(P1) having the pattern P1 projected thereupon, provides a resultant image substantially free of ambient light. As a result, the reflected pattern from the cube in the resultant image is accentuated and thus more readily decoded. This is seen in close up of resultant image 278 where the black and white points of the image are clearer than seen in the original I′_(P1) image.

In all of the dual projection and imaging embodiments of FIGS. 15-21, the alignment, or relative spatial position, between the imaged object in both images is limited somewhat. The degree to which movement between imaged frames is limited is a typically a function of the imaging strategy and the speed of the imaging device. Both temporal and spectral imaging devices may be used with the previous embodiments to capture dual images.

For instance, the simplest implementation of temporal imaging of the dual patterns in the previous embodiments is through two “snapshots” of the imaging device over two time intervals. One advanced method of temporal dual imaging, supported by modern camera boards, is non-uniform-exposure timing. Modern camera sensors enable control over the exposure time of the camera sensor. So for example, it is possible to provide pairs of interval exposure times placed close to each other, rather than uniformly spaced in time. For instance, image I1 may be taken at t=0 milliseconds, image I2 at t=5 milliseconds, image I3 at 100 milliseconds, image I4 at 105 milliseconds, and so on. As a result, a series of images is obtained at an average rate of 20 images per second. However, pairs of images are provided that are taken at consecutive time intervals rather than spaced apart in time. As a result, if the movement occurring between the first and second time interval is slight enough, or alternatively if the imaging device is fast enough, comparison between the dual images may be carried out as in previous embodiments.

The above strategy of two consecutive images at adjacent time intervals is dependent on fast projection speeds. The imaging apparatus sensor should ideally not be exposed to any time beyond the projection time, as this would lead to ambient light disruptions in the imaged pattern. Other sensor designs to increase imaging speed for the embodiments of the present invention include certain CMOS per-pixel-based computation sensors. These specially designed sensors carry out computations immediately at each pixel location upon the pixel receiving light intensity. This is in contrast to computing pixel values subsequent to the emptying of the sensor to computation modules.

Furthermore, the above dual imaging strategy may be implemented to obtain texture images in parallel to the captured depth information. In preferred embodiments, the pattern is projected every other image frame. In the remaining image frames, uniform illumination is projected onto the object and the object is imaged. Assuming minimal relative motion between the two frames, it is possible to apply the texture information obtained while projecting uniform light onto the object to depth information captured in the images containing the projected pattern.

It is understood that spectral methods of capturing two patterns are also possible. Such implementations may include the use of multiple CCDs.

As stated, the imaging and projector apparatus of the present embodiments may be in motion relative to stationary or moving objects. This is a direct result of single pattern projection. Therefore, an imaging system using methods and apparatuses of certain embodiments may be conveniently mounted on a moving vehicle in an urban environment to capture the geometric constructs in three dimensions of buildings, landmarks, and other objects both stationary and moving in the urban scene.

Reflectance characteristics of certain high texture surfaces in the urban scene may lead to feature identification error in single imaging device systems. Therefore, in order to ensure that correct 3D spatial coordinates are derived, an additional imaging device may be added to the system. The additional imaging apparatus allows for what is referred to as stereo depth decoding in addition to the single image decoding methods described previously herein.

To further understand stereo depth decoding using the methods and apparatuses of preferred embodiments, we refer to FIG. 22. In stereo-based depth imaging and decoding systems, two imaging devices placed near to each other capture a given scene, preferably simultaneously. The two images, denoted as image A and image B, are nearly the same. However, since the two images are taken from slightly different angles, imaged objects appear at slightly different pixel locations in the two images. Given a fixed distance between the imaging devices for every frame, any object that ever appears on a certain pixel location in image A must appear on a specific epipolar line in image B. Likewise, any object that ever appears on a certain pixel location in image B appears on a specific epipolar line in image A. The distance of the imaged object appearing at a certain pixel location in one image affects where along the corresponding epipolar line the object appears in the second image.

Now, when a projector is added in between the two imaging devices, or cameras, a structured light pattern such as discussed above may be projected onto the imaged urban objects. In each of the two images, reflected pattern features appear together with the texture of imaged objects, such as seen in FIG. 11. A given pixel in either image may contain part of a reflected feature and thus any randomly chosen square pixel area of the image may contain features or parts of features in addition to the imaged object texture. The features, or parts of features, together with the imaged object texture comprise the totality of information on any given pixel. The information appearing at a square pixel location in image A, will always appear on a unique set of coordinates (a specific set of epipolar lines) in image B. Likewise any information appearing at a square pixel location in image B, will always appear on a unique set of epipolar lines in image A. Further, if epipolar separation techniques associated with the pattern structure and projection are utilized, feature types appear only once on each epipolar line. Therefore, each small area along epipolar lines in each image is unique and the features provide non-repeating “artificial texture” for each image. The set of points comprising epipolar fields between images is determined generally through stereo calibration or stereo rig calibration techniques known in the art.

The set of epipolar lines in image B, EP1B, comprises the totality of points upon which the information contained on pixel area PX1 in image A may be found in image B. Likewise, the set of epipolar lines in image A, EP1A, comprises the totality of points upon which the information contained on pixel area PX2 in image B may be found in image A. The relationship between pixel locations in image A to pixel locations in image B is referred to as an epipolar field.

Referring to FIG. 23, two additional epipolar fields exist. These fields are: 1) the epipolar field between the projector and image A and 2) the epipolar field between the projector and image B. These fields behave as described in previous embodiments above and are not expounded on further here. Noticeably, in light of the above discussion, feature F1 may appear in Image A at pixel area PX1 in addition to the texture of an imaged object. In such a case, both feature F1 and the imaged object appear at the same point on EP1′ in image B.

Stereo correspondence can then be carried out as follows. A particular group or “window” of pixels is chosen at a certain location in either image, say image A. This group of pixels in image A will only be found along a certain set of epipolar lines in image B. Image B is scanned along these epipolar lines for a matching group of pixels. When a matching pixel set is found, the location in image B is noted. We now know matching pixel windows and their corresponding locations in each of image A and B. Since the distance between the two imaging apparatuses is known, along with the angles of projection and image capture for each camera/image apparatus, triangulation methods can be used to determine the 3D spatial coordinates of the objects imaged on those pixel locations in each image. This process is continued for each pixel group location to obtain a 3D point cloud of the imaged object(s) for each frame.

In stereo depth decoding of two images containing a reflected pattern, the features are not decoded as in the single image case. Rather, the pattern features act as a very dense and high contrast “artificial texture”. “Windows” of pixels are compared between the two images to find matching pixel areas. Furthermore, since feature types do not repeat themselves along the epipolar lines when using projection techniques of the present embodiments, each small “window” of pixels is unique along respective epipolar lines. Again, these windows may not include full pattern features, but only parts of features. In either case, the features act as unique “artificial texture” along the epipolar line on top of the texture of the imaged objects.

Surfaces that are likely to lead to feature identification error in single imaging systems include for example high textured surfaces, transparent and semitransparent surfaces, and dark surfaces. This is because features of the encoded light projected onto high-textured surfaces are likely to become deformed and thus not decodable as a result of reflectance from the high-textured surface. Although reflected features may not be decipherable, they still add unique texture along epipolar lines to the already textured image. The comparison between two captured 2D images is made easier as unique “windows” can be matched to each other. The addition of the reflected pattern aids in the stereo matching process in non-textured or low textured surfaces, such as walls or grass, features may be extracted from one image, as described in previous embodiments.

The additional imaging device thus, firstly, provides “another opportunity” to derive the depth coordinates of a given scene of a given image frame. In total, 3D coordinates of a given scene using the configuration of the present embodiment are computed three times. Once in each image separately through reflected feature decoding and a third time from the comparison of correspondences between the first and second image.

The system geometric constraints that are to be imposed to enable the stereo depth decoding in addition to single image decoding are as follows. A suitable displacement, sometimes termed baseline, is set between a first imaging device and the projector and between a second imaging device and the projector. The two imaging devices are on opposite sides of the projector, each at 180 degrees from the projector. Thus, the two baselines are preferably parallel to each other and the three optical centers (projector and two imaging devices) are on a single line or almost single line. The projected pattern is projected at a suitable tilt angle, as described in above embodiments, to ensure epipolar separation both along epipolar fields between each imaging device and the projector as well as the epipolar fields between the two imaging devices.

Practically, it may further be desirable to position the projector closer to one of the imaging devices, say the first imaging device. The smaller distance between the first imaging device and the projector is particularly suited for decoding of features reflected from close objects. The medium displacement between the second imaging device and the projector is particularly suited for decoding of features reflected from objects still farther away. Finally, the large displacement between the first and second imaging device is suitable for stereo matching of imaged distant objects. Since the projector has limited energy, the projected pattern may often not reach distant objects. In such a case, the task of extracting depth is carried out through stereo matching without reflected features, what is referred to as passive stereo matching. Therefore, the largest baseline is reserved for the task of stereo matching.

Reference is now made to FIG. 24, which is a simplified flow chart showing the steps in the process of generating a 3-D map of an urban region. In the example of FIG. 22, the urban region is not limited to a single “scheme” or landscape. Instead, multiple 3D images are captured from different locations and different angles, for example, by mounting a projector and/or image apparatus on a moving vehicle and capturing images when the moving vehicle is at different locations.

The flow chart shows the example of a projector and two imaging apparatuses but other configurations with more projectors and imaging apparatuses are possible. The reason for use of at least two image apparatuses in the current embodiment is, as explained above, to enable stereoscopic depth measurement in addition to the active triangulation methods described until now using a single imaging apparatus.

The process is as follows. First, in step s1, a two dimensional coded light pattern is generated as in previous embodiments. This two dimensional pattern should be structured so that it allows for the epipolar separation techniques discussed above. The pattern P1 in previous embodiments is especially suited for urban modeling as it is scalable and can be made rather large for urban objects. Second, in step s2, the pattern is projected onto objects in urban scenes from a projector(s) mounted on a moving vehicle. These urban objects may include buildings, cars, greenery, street signs, people, or any other object. Projection techniques are as discussed above to ensure epipolar separation.

In step s3, images are captured from each of the two imaging apparatuses which are located at preferably slightly different angles to the scene. The images are preferably captured simultaneously and show a combination of the original texture and the pattern. In step s4, each of the two captured images is analyzed independently, as in previous embodiments, according to features and their locations along respective epipolar lines. In addition in step s4, a comparison using stereo correspondence as discussed above is carried out between the two images. In this comparison, similar pixel areas in both images are identified. As discussed, similar pixel areas indicate where the same imaged location appears in each of the images. A given pixel area in one image is searched for along certain epipolar lines in the other image and a correspondence is found.

Now, the displacements of each feature from known calibrated reference points in each of the two images is carried out in step s5, as described in embodiments above. From the displacements, each identified feature in the 2D images is corresponded to a 3D spatial coordinate, step s6, based on triangulation-based data. In addition, in step 5, relative locations between corresponding pixel “windows” in the two images is computed. These relative locations can be used in triangulation techniques to determine the 3D spatial coordinates of the imaged object appearing at those locations in the two images, step s6.

As discussed above, the comparison between images allows for the derivation of 3D coordinates from rich texture surfaces, dark surfaces, locally unsmooth surfaces, transparent surfaces, shiny surfaces, etc, that under single pattern conditions could likely be identified erroneously or not at all. Taken together, the three 3D coordinate mappings of the imaged objects allow for the construction of a 3D point cloud of the imaged scene, seen as step s7. This point cloud may be further processed to obtain a mesh or 3D surface, seen as step s8. The 3D surfaces may then be further processed together with texture data from additional cameras or CCDs. Aerial data of the urban scene may also be added. Such texture and aerial data may complement the depth 3D depth map obtained through steps s1-s8.

Steps s4 through s9 are typically carried out by an image processing device or devices of various kinds known in the art. Texture data may be obtained in a number of ways. One way is by adding an additional CCD to the sensor apparatus in the imaging system. Another is by time adding a tunable filter to a single “switchable” CCD, such that at certain time intervals the CCD captures pattern and thus depth information, and at other intervals the CCD captures texture information. Still another method is by simply adding a textured-dedicated camera to work in parallel to the depth capturing system.

As stated, the single pattern method employed in preferred embodiments allows for relative motion between the imaging/projector system and imaged urban objects. Therefore, the method and apparatus are particularly suited for an implementation where the imaging apparatus is mounted on a ground-vehicle moving at various speeds throughout an urban environment.

To obtain dynamic scene modeling in three dimensions, steps s2 through s8 are repeated and a sequence of three dimensional images obtained. Processing of data from moving objects may occur in real time through appropriate processing software and hardware to derive surfaces and shapes from the 3D point clouds of the objects and their movement in 3D space over time.

As the present embodiment in FIG. 24 may be implemented through projection of a single pattern structured light code, the speed of image capture is typically only limited by the speed of the imaging apparatus in which the pattern is implemented and thus a rapid 3D modeling of city landscape is possible.

Stereo matching, either passive or active, provides a much more dense sampling of the imaged scene. This is because the content of any given pixel of say a first image provides a disparity measurement in relation to the same content appearance in a second image. This disparity measurement means a depth value for each given pixel. So if the CCD sensor contains X pixels, X depth coordinates are derived.

In contrast, in decoding of single images as explained above, each feature that is decoded has a certain spatial area on the sensor. Lets say typically 10 square pixels, so a decoded 2D image from which 3D spatial coordinates are triangulated has X/10 depth coordinates. So a stereo matching implementation has 10 times more depth coordinates, and thus denser sampling.

Moreover, in stereo matching, sub-pixel resolution is possible by performing the matching process between two up-sampled versions of the two compared images. For example, each 4×4 block of pixels is up-sampled by a factor of 4 to a size 16×16 pixel blocks in each of two images. A certain up-sampled block is chosen in a first image. Then a similar block to this up-sampled block of pixels is searched for in the second image. The correspondence between pixels is now in terms of up-sampled pixels. So if a disparity of say 21 pixels is found between the two images, this is equal to 21/4=5.25 original pixels. The remaining quarter pixel is the sub-pixel resolution in terms of original image resolution.

Reference is made to FIG. 25. The method and apparatus of motion based three dimensional image capture and depth measurement of the present embodiments has particular application to the medical imaging field. Surface images that determine the shape and dimensions of an anatomical surface part in three dimensions may be computed in real time for modeling of both stationary and moving surface anatomy. The 3D point clouds, determined through the embodiments above, may be further processed to obtain surfaces and shapes of the objects and their movement in 3D space over time. These surfaces and shapes are referred to as triangulation meshes.

Such 3D modeling data may be particularly useful for various medical applications including but not limited to external three dimensional imaging for tumor analysis, skin growth analysis, bone structure analysis, dental surgery applications, maxillofacial and other osteotomic surgeries, skin cancer and melanoma diagnosis, prosthetic applications, rehabilitation purposes, sports medicine applications, and plastic surgery and other aesthetic medical procedures.

In the fields of reconstructive, plastic, and dental surgery, to name a few, biomechanical modeling may utilize dynamic 3D modeling of anthropometric data in surgery planning and post surgery review. The expected aesthetic result of surgery is important to a patient, and the imaging system of the current embodiments allows for soft tissue predication in three dimensions. Post surgery review of anatomical changes, such as breast implants and reductions, dermal fillers, face and neck lifts, can be carried out through use of the 3D imaging system of the current embodiments.

For rehabilitation applications skeleton modeling of the anatomical part, such as discussed in U.S. Pat. No. 6,133,921, may be carried out based on analysis of the 3D point cloud. Motion analysis of the skeleton model may then be performed. In the area of dental applications, 3D maxillary modeling and other facial bone analysis is possible. Other applications include measurement of tumor shape and size, reconstructive surgery planning and diagnosis, dental and plastic surgery, prosthetics, rehabilitation, and skin cancer analysis.

Reference is now made to FIG. 23, which is a simplified flow chart showing the steps in the process of dimensional image capture of surface anatomy according to the present embodiments. In step 300, a two dimensional coded light pattern is generated. Next, in step 302, the generated pattern is projected onto an external anatomical part. As skin surfaces are naturally low texture surfaces, the structured light pattern of the current embodiments is naturally suited for skin surface imaging. In step 304, a 2D image of the anatomical pail, and the reflected pattern is captured by an imaging device. In step 306, the captured image is sent to a processor, for extracting the reflected feature types and their locations along respective epipolar lines in the captured image. The locations of the features along their epipolar lines are then associated with 3D coordinates on the imaged anatomical part from which the features were reflected, step 308. This process of correspondence between feature locations along epipolar lines and 3D spatial coordinates determines the anatomical shape. The process is carried out through triangulation techniques, as discussed above. For each identified feature in the 2D image, a corresponding 3D coordinate is thus derived indicating the point in space at which that feature reflected off of the anatomy part. Through a compilation of all such 3D coordinates, a 3D point cloud is derived that gives a three dimensional map of the imaged anatomical part(s), step 310. If the anatomical part is moving, then steps 304 through 310 are repeated and a sequence of three dimensional coordinates in space is obtained. This sequence comprises a point cloud data set over time from which a skeleton in motion may be generated, step 312.

In preferred embodiments, this stationary or dynamic skeleton model is further processed and preferably output to a 2D or 3D screen for viewing. As mentioned, the three dimensional coordinates may be processed in real time for either stationary or moving anatomy. Through post processing, for example, the point cloud and/or skeleton model is transformed into a 3D surface representing the dimensions of the imaged anatomical part. The 3D imaged surface, both in motion or stationary, can be used in the applications shown at the bottom of the figure and discussed above.

In an alternative embodiment, particularly in prosthetic or rehabilitation applications, the anatomical part may be covered with clothing or other material. Furthermore, the above embodiments may be implemented together with additional imaging devices, in particular one or more texture based imaging devices to obtain textural information together with the depth information. Examples of such implementations include RGBZ, splats, color voxels, and textured mesh. Typically, these implementations involve the addition of a textured-dedicated camera to work in parallel to the depth capturing system. This texture based information may allow for additional diagnosis of ailments associated with skin color as well as increased visibility by avoiding occlusions. Moreover, such an additional texture-based camera allows for the reconstruction of high-contrast, high-textured, non-smooth surfaces such as hair.

Furthermore, other embodiments may preferably utilize a second imaging device as discussed above. Stereo active triangulation techniques offer several advantages. Less occlusions occur in the obtained 3D image, as the object or anatomical element is now imaged from more than one viewpoint. For high-contrast, high textured surfaces mentioned above, such as body parts covered by hair, freckles, melanoma, stereo imaging is preferred as discussed above. Finally, higher resolution is obtained with stereo matching as discussed above as well. As the human body is generally a low textured surface, the single image decoding and 3D spatial coordinate derivation is utilized for most applications requiring geometric shape of stationary or moving body parts.

Many medical applications require 3D motion capture for anatomy motion analysis. Furthermore, the human body is not static even at rest. As a result, dense sampling is necessary for each frame, as post-processing by the addition of computed estimated 3D spatial points is less desirable.

Preferred embodiments utilize narrowband monochromatic imaging which is simpler and cheaper than capturing color images. Monochromatic imaging allows the projection of low cost invisible IR light.

It is expected that during the life of this patent many relevant devices and systems will be developed and the scope of the terms herein is intended to include all such new technologies a priori.

The terms “light pattern”, “light code”, and “light code pattern”, are used herein to refer to any light encoding technique, including, but not limited to, structured light, coded light, and other equivalents known in the art.

It is appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable subcombination.

Although the invention has been described in conjunction with specific embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. Accordingly, it is intended to embrace all such alternatives, modifications and variations that fall within the spirit and broad scope of the appended claims. All publications, patents, and patent applications mentioned in this specification are herein incorporated in their entirety by reference into the specification, to the same extent as if each individual publication, patent or patent application was specifically and individually indicated to be incorporated herein by reference. In addition, citation or identification of any reference in this application shall not be construed as an admission that such reference is available as prior art to the present invention. 

What is claimed is:
 1. A method of obtaining distance data from 2D images of a scene comprising one or more objects, said method comprising: projecting on the objects a coded light pattern comprising multiple appearances of a finite set of feature types, each feature type being distinguishable according to a unique bi-dimensional formation, such that a distance between adjacent epipolar lines associated with substantially identical appearances of any given feature type is minimized according to a limiting epipolar separation factor, giving rise to a plurality of distinguishable epipolar lines separated by approximately a minimum safe distance for epipolar line distinction; capturing a first image and a second image of the objects having the projected coded light pattern projected thereupon, such that along an epipolar line in each of the first and second images the projected pattern provides a non-repeating artificial texture; finding a given pixel area in the first image along a matching epipolar line in the second image.
 2. The method according to claim 1, wherein the number of distinguishable epipolar lines is determined by minimizing the distance between the adjacent epipolar lines associated with substantially identical appearances of a given feature type to a point where the adjacent epipolar lines are no longer distinguishable.
 3. The method according to claim 1, wherein the distance between the adjacent epipolar lines associated with substantially identical appearances of a given feature type is minimized according to the limiting epipolar separation factor and according to a safety factor.
 4. The method according to claim 3, wherein the distance between the adjacent epipolar lines associated with the substantially identical appearances of the given feature type is minimized according to the limiting epipolar separation factor to a point, where according to the safety factor, the distance between the adjacent epipolar lines is too small to provide a safe distance for epipolar line distinction.
 5. The method according to claim 1, wherein the limiting epipolar separation factor is associated with one or more of the following: optical characteristics of an imaging apparatus, optical characteristics of a projector, coordinate detection algorithms, feature type characteristics, object surface type and projector SNR level.
 6. The method according to claim 3, wherein the safety factor is associated with one or more of the following: a parameter representing mechanical stability of a calibrated projector, a parameter representing mechanical stability of a calibrated imaging apparatus and a parameter representing encoded pattern directionality.
 7. The method according to claim 1, wherein said projecting further comprises projecting the coded light pattern on the objects at an angle in relation to the epipolar lines, the angle corresponds to the minimum distance determined in accordance with the limiting epipolar separation factor.
 8. The method according to claim 7, further comprising orientating or angling or tilting or skewing or rotating the coded light pattern in relation to the epipolar lines to enable said projecting the coded light pattern on the objects at an angle in relation to the epipolar lines.
 9. The method according to claim 8, wherein said orientating or angling or tilting or skewing or rotating the coded light pattern comprises providing a non-periodic pattern, and wherein the non-periodic pattern is arranged approximately to provide an angle in relation to the epipolar lines, and the angle is associated to the minimum safe distance for epipolar line distinction.
 10. The method according to claim 1, wherein said projecting comprises projecting the coded light pattern such that the given feature type appears at most once on two or more predefined sections of the distinguishable epipolar lines, each section representing a corresponding depth range.
 11. The method according to claim 1, wherein said projecting comprises projecting the coded light pattern at an angle in relation to the epipolar lines in accordance with the parameters of a Sin⁻¹ (P/YC) formula.
 12. The method according to claim 1, wherein the epipolar lines are characterized by varying x and/or y coordinates.
 13. The method according to claim 1, wherein the epipolar lines are curved.
 14. The method according to claim 1, wherein the first and second images are video frames.
 15. The method according to claim 1, further comprising extracting from each of the first and second images reflected feature types according to the unique bi-dimensional formations and locations of the reflected feature types on corresponding epipolar lines in the respective image.
 16. An apparatus for enabling obtaining distance data from 2D images of a scene comprising one or more objects, said apparatus comprising: a bi-dimensional coded light pattern comprising multiple appearances of a finite set of feature types, each feature type being distinguishable according to a unique bi-dimensional formation; and a projector configured to project the coded light pattern on the objects, such that a distance between adjacent epipolar lines associated with substantially identical appearances of any given feature type is minimized according to a limiting epipolar separation factor, giving rise to a plurality of distinguishable epipolar lines separated by approximately a minimum safe distance for epipolar line distinction, wherein the projector enables a first imaging unit and a second imaging unit to capture a first image and a second image, respectively, such that along an epipolar line in each of the first and second images the projected pattern provides a non-repeating artificial texture, and wherein the projector enables an image processing unit to find a given pixel area in the first image along a matching epipolar line in the second image.
 17. The apparatus according to claim 16, wherein said projector is configured to project the coded light pattern on the objects, such that the distance between adjacent epipolar lines associated with substantially identical appearances of any given feature type is minimized to a point where the adjacent epipolar lines are no longer distinguishable.
 18. The apparatus according to claim 16, wherein said projector is configured to project the coded light pattern on the objects, such that the distance between adjacent epipolar lines associated with substantially identical appearances of a given feature type is minimized according to the limiting epipolar separation factor and according to a safety factor.
 19. The apparatus according to claim 18, wherein said projector is configured to project the coded light pattern on the objects, such that the distance between the adjacent epipolar lines associated with substantially identical appearances of a given feature type is minimized according to the limiting epipolar separation factor to a point, where according to the safety factor, the distance between the adjacent epipolar lines is too small to provide a safe distance for epipolar line distinction.
 20. The apparatus according to claim 16, wherein said projector is configured to project the coded light pattern on the objects according to the limiting epipolar separation factor which corresponds to one or more of the following: optical characteristics of a imaging apparatus, optical characteristics of a projector, coordinate detection algorithms, feature type characteristics, object surface type and projector SNR level.
 21. The apparatus according to claim 18, wherein said projector is further configured to project the coded light pattern on the objects according to the safety factor which corresponds to one or more of the following: a parameter representing mechanical stability of a calibrated projector, a parameter representing mechanical stability of a calibrated imaging apparatus and a parameter representing encoded pattern directionality.
 22. The apparatus according to claim 16, wherein said projector is configured to project the coded light pattern on the objects at an angle in relation to the epipolar lines, the angle is associated with the limiting epipolar separation factor.
 23. The apparatus according to claim 22, wherein said projector is configured to orientate or angle or tilt or skew or rotate the coded light pattern in relation to the epipolar lines according to the limiting epipolar separation factor.
 24. The apparatus according to claim 22, wherein the coded light pattern projected by said projector is a non-periodic pattern, and wherein the non-periodic pattern is arranged to approximately provide an angle in relation to the epipolar lines, the angle is associated to the minimum safe distance for epipolar line distinction.
 25. The apparatus according to claim 16, wherein said projector is adapted to project the coded light pattern such that the given feature type appears at most once in each of two or more predefined sections of the distinguishable epipolar lines, each section representing a corresponding depth range.
 26. The apparatus according to claim 16, wherein said projector is configured such that the projecting of the coded light pattern is at an angle in relation to the epipolar lines in accordance with the parameters of a Sin⁻¹ (P/YC) equation.
 27. The apparatus according to claim 16, wherein the epipolar lines are characterized by varying x and/or y coordinates.
 28. The apparatus according to claim 16, wherein the epipolar lines are curved.
 29. The apparatus according to claim 16, wherein the first and second images are video frames.
 30. The apparatus according to claim 16, wherein the projector enables an image processing unit to extract from each of the first and second images reflected feature types according to the unique bi-dimensional formations and locations of the reflected feature types on corresponding epipolar lines in the respective image. 